Jos Neto Posted May 23, 2022 Share Posted May 23, 2022 Webfocus has a graph component based on leaflet to maps... how can i put more than one column on SUM to display on map When i try that only 'COL2' is displayed on tooltip... ENGINE INT CACHE SET ON -DEFAULTH &WF_STYLE_UNITS='PIXELS'; -DEFAULTH &WF_STYLE_HEIGHT='405.0'; -DEFAULTH &WF_STYLE_WIDTH='770.0'; -DEFAULTH &TILE = 'Dataprev'; GRAPH FILE HS_FT_PROCESSOS_AGRUPAMENTOS SUM QT_PROCESSOS AS 'COL1' IN_PROCESSO_PENDENTE_CRPS AS 'COL2' BY SG_UF ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET VZERO OFF ON GRAPH SET HTMLENCODE ON ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET UNITS &WF_STYLE_UNITS ON GRAPH SET HAXIS &WF_STYLE_WIDTH ON GRAPH SET VAXIS &WF_STYLE_HEIGHT ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 0 ON GRAPH SET GRXAXIS 1 ON GRAPH SET LOOKGRAPH CHOROPLETH ON GRAPH SET AUTOFIT ON ON GRAPH SET STYLE * *GRAPH_SCRIPT setPieDepth(0); setPieTilt(0); setDepthRadius(0); setCurveFitEquationDisplay(false); setPlace(true); setPlace(true); setToolTipStyle("html5"); *END -*INCLUDE=endeflt.sty,$ TYPE=REPORT, TITLETEXT='WebFOCUS Report', $ *GRAPH_SCRIPT setReportParsingErrors(false); setSelectionEnableMove(false); setDisplay(getLegendArea(),true); *GRAPH_JS "mapProperties": { "engine": "leaflet", "leaflet": { -* "initPos": {"center":[-15.846426, -43.088379] ,"level": 5}, "overlayLayers": [{ "title": "Brasil", "dataLookup": "properties.short_code", "layerInfo": { "maxZoom": "-1", "minZoom": "-1", "maxBounds": function (){return new L.LatLngBounds ([5.542788, -60.664063],[-33.917153, -53.415527])}, "type": "regions" }, "type": "tdg", -*"url": function() { return tdgchart.getScriptPath().replace(//tdg/.*/,'/approot/bgesisrec/recursos/js/') +'BR.json'} "url": function(){ return tdgchart.getScriptPath() + 'map/BR.json'} }], "controls": [ {"control": "L.Control.Layers"}, { "control": "L.Control.Scale", "options": { "imperial": true, "metric": true } } ], "baselayers": [{ "title": "World_Topo_Map", "layerInfo": { "maxZoom": 16, "attribution": function(){ return "&|copy; Information Builders | " + "&TILE.EVAL | " + "Map Tiles: &|copy; Esri";} }, -*Opcoes de Mapa "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light...{z}/{y}/{x}';} -* "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/Map...{z}/{y}/{x};';} -* "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/M...{z}/{y}/{x}';} -* "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapS...{z}/{y}/{x}';} -* "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base...{z}/{y}/{x}';} -* "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/M...{z}/{y}/{x}';} -* "url": function(){ return 'http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapS...{z}/{y}/{x}';} -* Atribuicao do mapa abaixo -* attribution: "Map data &|copy; OpenStreetMap -* contributors, Open Database Licence | Map Tiles by Mapbox", -* "url": function(){ return 'http://{s}.tiles.mapbox.com/v3/bclc-apec.map-rslgvy56/{z}/{x}/{y}.png';} }] } }, "heatmapProperties": {"dataColors":['#ffffcc','#ffeda0','#fed976','#feb24c','#fd8d3c','#fc4e2a','#e31a1c','#bd0026','#800026'] }, *END ENDSTYLE -INCLUDE IBFS:/WFC/Repository/bgesisrec/comum/sem_dados.fex END -*IA_GRAPH_FINISH Link to comment Share on other sites More sharing options...
Donal Terrell Posted May 31, 2022 Share Posted May 31, 2022 Hello, The Leaflet engine is a lightweight version of ESRI's mapping capabilities - it doesn't really have multi-layer functionality built into it, it's designed for use with just one Measure field. Within WebFOCUS you would need to create a map with multiple layers via an HTML page in App Studio, or in WebFOCUS 9 multilayer mapping has been introduced into Designer as a capability. Kind Regards, Donal Terrell Tibco Support Engineer 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now