Focal Point
[SOLVED] Maps options

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2177091186

March 10, 2016, 09:08 AM
GavinL
[SOLVED] Maps options
Working with maps and can't figure out how to turn the overlay icon, zoom, and the "Unknown" off.

Anyone ever have to do this?

This message has been edited. Last edited by: GavinL,



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
March 10, 2016, 09:14 AM
BabakNYC
The Unknown is associated with having values that don't exist in your base layer. So, if you're using US and mapping values in Russia, you'll get Unknown values.

I'm not sure how to get rid of the zoom and layer.

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8206, Unix, Windows
March 10, 2016, 02:40 PM
GavinL
Thanks for your help.

mapProperties: {
	controls: [{
-*COMMENT THE FOLLOWING 1 of 2 lines for layers icon.  I think it's based on how many layers you have and we have 2.
		control: 'L.Control.Layers',
	}],
	leaflet: {
		mapOptions: {
-*ZOOM CONTROLS
			zoomControl: false
		},
		initPos: {
			center: [37.8,-96],
			level: 4,
		},
		overlayLayers: [{
			"seriesID": 0,
			"markerType": "choropleth",
			title: "Loans by State",
			dataLookup: "properties.state_abbr",
			layerInfo: {
				type: "regions"
			},
			type: "tdg",
			url: function(){
				returntdgchart.getScriptPath()+'map/US.json'
			}
		},
		{
			title: "Loans by City",
			"seriesID": 1,
			"markerType": "bubble",
			dataLookup: "properties.STATE_CITY",
			type: "geojson",
			url: function(){
				returntdgchart.getScriptPath().replace(/\/tdg\/.*/,
				'/web_resource/map/')+'state_city.geojson'
			}
		}],
		controls: [{
-*COMMENT THE FOLLOWING 2 of 2 lines for layers icon.
			control: 'L.Control.Layers',
		}],
		baselayers: [{
			title: "ArcGIS_World_Street_Map",
			layerInfo: {
				minZoom: 3,
				maxZoom: &MAX_ZOOM,
				attribution: function(){
					return"&|copy; YOLO";
				}
			},
			url: function(){
				return'http: //services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}';
			}
		}],
	}
},

This message has been edited. Last edited by: GavinL,



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
May 11, 2016, 04:18 AM
Gaurav
I am using default google maps of webfocus is there any better way to toggle thru different layers and I don't want to have Show All button in my Layers drop down on the map. If it is possible please Help.

Thanks,
Gaurav Tyagi


WebFOCUS 8.1.05
Windows, All Outputs