When I use different size monitors then try to `MapView.goTo(extent)`, it zooms in more or less depending on screen size. On larger resolution screens it zooms in a bit more than smaller ones, is there a way to set just how much zoom happens when I try to go to a feature?
Hi Evon,
You can achieve zooming to a particular level of your map by passing the zoom value to the same function as an option. The same function "MapView.goTo" accepts a second parameter as "Options" wherein one can define the zoom level.
For more information on these functions click here and here.
Thanks.
goTo does accept additional parameters but it does not allow for zoom level, so I guess I am stuck again.
you could do like this:
mapView.constraints = {
minScale: 295828763.795777, // the second lowest tile level -1
maxScale: 564.248588 // the hightest tile level -20
};
This is caused by using the tiled basemaps. They are set to show at a specific resolution or scale for each Level of Detail (LOD) and at a specific DPI. Since the resolution and the DPI of the monitors vary, this means the extent of the basemap will not be exactly the same on different monitors.