cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the initial zoom on the basemap in geomap in DS 1.6 SP2?

emrys_tx
Explorer
0 Kudos

I have created a report with a GeoMap component but am confused as to how to set the default zoom.

I am using this basemap url:

http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{LOD}/{Y}/{X}

When I run the report initially it looks like this.

I can zoom in manually to here.

How do I set the zoom to be similar to this on opening?

Looked through the 38 hits on my search but found nothing. Tried to find a US basemap without success.

Thanks in advance.

Jeff

Accepted Solutions (0)

Answers (2)

Answers (2)

MustafaBensan
Active Contributor
0 Kudos

Hi Jeff,

Regarding your requirement for a "US basemap", if you are referring to a shape file for the US, you can download both State and County level GeoJSON files from my blog post: Design Studio Innovation Series – Topic 7: Geo Maps Part II – Zoom, Zoom, Zoom!

Mustafa.

former_member193885
Contributor
0 Kudos

Hi Jeff,

You have to do this with script, you can add the code below to the onStartup event of the application.

GEO_MAP_1.centerMap(layerId);

Replace the layerId with the name of the layer in your application which should have the focus on.

Thanks.

Deepu