Presumably the most southerly latitude is still used when using the scalebar in an external container, like in this sample.
Thanks for the feedback.When zooming out to the extent covering the whole world under web mercator projection or GCS, there is no meaningful scale value. I attach a screenshot of google maps, which behaves similarly.The reason behind the scenes is those projections distort the map, hence the scale value varies in different area. So there is not a single scale value which can represent the whole map. The implementation of the scalebar picks the scale value at the location of itself to represent the map. In a relatively small area, this is not a problem. But in a map which covers the whole world, the scale values in different area differ drastically. The reason the scalebar shows very small values in the map is because it's under the south pole. So it uses the scale value in south pole area to create the scalebar.But for sure, we can improve the behavior. Issue 1 will be fixed at the next release. Issue 2 will be fixed as well. It will find a more appropriate scale value when the map covers the whole world.Thanks again.
//add the scalebar var scalebar = new esri.dijit.Scalebar({ map: map, scalebarUnit:'english' }); //add the overview map var overviewMapDijit = new esri.dijit.OverviewMap({ map: map, color:"#D84E13", opacity:.40, visible:false, id:"overviewMap" }); overviewMapDijit.startup(); map.reposition(); map.resize();
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.