Is it possible to zoom some scale which is not available in BaseMap ?

369
9
Jump to solution
12-04-2017 10:40 PM
mohannainar1
New Contributor III

Hi,

I am using custom basemap(contains 4 scales 1:500000,1:200000,1:100000,1:50000) in my javscript application and doing attribute query in operational layer and got the results. The result(featureset) extent is falling 1 : 20000 scale , is it possible to zoom 1:20000 ? . I guess it is not possible , want to know if there are any workaround for this issue . 

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Mohan,

   You add some more scale like 25000, 15000, 10000, 7500, 5000, 2500 using the info i provided above and WAB when it zooms will use the closest scale available when zooming.

View solution in original post

9 Replies
RodrigoFelga
New Contributor III

It seens if you call view.scale 2 times it forces to go to that scale, so I'm using this code as a workaround:

view.scale = 10000
view.scale = 10000
0 Kudos
mohannainar1
New Contributor III

Will try and let you know the feedback.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Mohan,

   You have a tag on this question of "arcgis webapp builder" yet you have this question in the JS API space... So is this a WAB question?

0 Kudos
mohannainar1
New Contributor III

Sorry for the confusion . Yes I want to do it WAB . 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Mohan,

   In WAB you can specify more LODs in the app:

mohannainar1
New Contributor III

Robert,

My scenario is 

1.Created basemap with 4 scales only (1:500000,1:200000,1:100000,1:50000).

2.Through query operation(custom tool or widget) i got the feature set (dynamically) . The feature set will have the extent and that extent is not falling into the base map scale. .For example I may get scale for the featureset 1:2500 or 1:7000 or 1:8000 . 

3.In that case Can i zoom to 1:2500 or 1:7000 or 1:8000 ? . Is it possible to view the basemap details in 1:2500 or 1:7000 or 1:8000 . 

4. The featureset scale 1:2500 or 1:7000 or 1:8000 is not constant , this will vary depends on the user query. 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Mohan,

   You add some more scale like 25000, 15000, 10000, 7500, 5000, 2500 using the info i provided above and WAB when it zooms will use the closest scale available when zooming.

View solution in original post

mohannainar1
New Contributor III

Robert,

Ok after adding the additional scales (25000, 15000, 10000, 7500, 5000, 2500) it will zoom to closest  . But the basemap details will not display am i correct ?. Because I have not created tiles  for these scales  25000, 15000, 10000, 7500, 5000, 2500 . Is my understanding correct ?

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

correct