Skip to Content
0

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

Jun 07, 2017 at 07:44 PM

163

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Deepu Sasidharan Jun 07, 2017 at 08:23 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Mustafa Bensan Jun 08, 2017 at 04:13 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded