Could you try to maximum zoom out with mouse please. as you can see viewdiv area shrink. Do you have any solution?
Here is the link
https://developers.arcgis.com/javascript/latest/sample-code/views-switch-2d-3d/index.html
thanks inadvance
Tuba,
As Richard explained that is normal behavior the map with wrap around the dateline east and west but the map does not wrap around north and south. So you will encounter a bank map with you beyond the North Pole or South Pole.
Thanks for the answer.
But actually i mean white spaces of top and bottom of map. There is no problem with left and right side. White spaces appears even you define minscale. Please try to move map with mouse to top or bottom continuously.
You can see white space after a while.
Hello Tuba Kumbara,
I think this behaviour is normal. There are natural bounds on your projection and basemap. What you can do is to set a minimum scale on your view to set a limit for the user to zoom out. You can do this in the View() object:
<SPAN class="keyword token">var</SPAN> view <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">MapView</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN> container<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"viewDiv"</SPAN><SPAN class="punctuation token">,</SPAN> spatialReference<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> wkid<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">31463</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> map<SPAN class="punctuation token">:</SPAN> map<SPAN class="punctuation token">,</SPAN> zoom<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">8</SPAN><SPAN class="punctuation token">,</SPAN> constraints<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> minScale<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">100000</SPAN> <SPAN class="punctuation token">}</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.