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 .
Solved! Go to Solution.
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.
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
Will try and let you know the feedback.
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?
Sorry for the confusion . Yes I want to do it WAB .
Mohan,
In WAB you can specify more LODs in the app:
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.
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.
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 ?
correct