Questions tagged [zoom]

Use this for questions about changing the zoom when display a map

Filter by
Sorted by
Tagged with
90
votes
12answers
224k views

What ratio scales do Google Maps zoom levels correspond to?

Can anyone provide me with a link (or some details) on the actual ratio to "zoom level" figures for Google Maps? e.g. Google Maps Level 13 = 1:20000
19
votes
4answers
27k views

Leaflet mouse wheel zoom only after click on map

I'm working with the Leaflet JavaScript Library and attached a (working) map to my HTML Document. It is in the middle of the page, and when I'm scrolling down with my mouse wheel and arrive at the map,...
19
votes
4answers
17k views

Using ArcPy to zoom to selected feature?

Is there a way to zoom to the extent of a selected feature using the ArcPy module in ArcGIS Desktop 10.
15
votes
1answer
12k views

Zoom further in than level 19 with leaflet javascript API?

We're using the leaflet JavaScript API with a tile layer which supports zoom level up to 19. I'd like users to be able to zoom further even if the tiles blur as they have to place markers to a high ...
15
votes
8answers
11k views

Shapefile layers in QGIS don't display unless I zoom out

I have two shapefile layers in a Qgis project that have problems with zooming. One is a line I copied/pasted in a new layer from a set of height contours and the other one is a polygon layer I created ...
12
votes
3answers
6k views

Changing mouse wheel zoom settings in QGIS?

I'm having a problem with the mouse wheel zoom setting on my macbook trackpad. The zoom occurs far too quickly for any level of precision. I noted this comment in the dev log: 2004-08-14 [gsherman] ...
10
votes
3answers
884 views

QGIS hotkey assign: “select next feature and zoom to feature”

I have a dataset with 2000+ feature based on addresses. I need to zoom to each point individually and move them a little (no consistent shift so no other way to do it). Selecting the next feature in ...
9
votes
5answers
3k views

Unable to zoom beyond scale of 1:2,256 in QGIS?

In QGIS, whatever might be the source, I couldn't zoom beyond the scale of 1:2256. Whether it's a raster or vector, result is the same. Does anyone know how to fix this ? On @Chris' advice I've ...
8
votes
1answer
11k views

Show/hide markers depending on zoom-level [duplicate]

I would like to show icons if the user zooms to level 7 or more and hide the markers when zoom level is 6 or lower. I've tried using the 'zoomend' property in my function like so: var shelter1 = L....
8
votes
2answers
7k views

Disable doubleclick zooming in OpenLayers 3

I've searched for it on the entire web and finally I found on artamstrong.com how to disable a single feature like "mouseWheelZoom". Here is how doubleclick zooming in OpenLayers 3 can be disabled: ...
7
votes
3answers
8k views

How to slow the zoom transition speed in Leaflet?

I'd like to slow the speed of the zoom transition in Leaflet, but I haven't figured out how. I'm using map.setView() a few times to change the zoom level. I've tried the solution suggested here: ...
7
votes
2answers
3k views

OpenLayers plugin in QGIS 2.6.1 crashes and errors with zoom

I have a major problem with the OpenLayers plugin. The maps of the plugin won't zoom to the right scale, or they just simply crash. I never had these problems in the old QGIS versions. This way, I can'...
6
votes
4answers
5k views

How to limit zoom level in OpenLayers 2.x

I would like to have only 3 levels of zoom available (from level 6 to level 8). demolayer2 = new OpenLayers.Layer.WMS( "abc...","http://localhost:8080/geoserver/gwc/service/wms", {layers: 'def...', ...
6
votes
3answers
16k views

Leaflet: Resize markers in layer when zoom in

May I ask how to resize markers in layer when zoom in? var map = L.map('map', { center: [23.364739, 115.187951], zoom: 11, minZoom: 11, maxZoom: 18, }); var ar_icon = L.Icon....
6
votes
1answer
2k views

Is it possible to set different scale dependent visibility for one layer classifications?

I'm working on a sewer and water network, so I need to set different scale visibility for primary, secondary and tertiary network.
6
votes
2answers
6k views

change width of outline for leaflet map depending on zoomlevel

I want to change the outline of a polygon depending on the zoomlevel. I thought it's easy to implement but there must be something wrong. My polygons dissapear when I try it with this code: to get ...
6
votes
2answers
1k views

Hide old tiles while loading new ones when zooming in Openlayers

Standard behavior, while zooming in and out in Openlayers, is that the current tile gets resampled and displayed stretched or compressed until the new tile is available. That's how it looks like while ...
6
votes
1answer
741 views

Is there touch screen support in QGIS for Windows?

I have a new 2in1 PC (laptop and tablet). It would be very nice to navigate in QGIS using its touch screen I.e. zoom in and zoom out using double finger touch, like on a mobile phone, etc. Maybe ...
5
votes
3answers
2k views

QGIS - Disable Mouse Wheel Zoom

I'm using QGIS 2.16.x and the mouse wheel preference to disable zooming does not seem to be available. I've tried locking the scale but when the magnifier function is enabled, the zoom function still ...
5
votes
2answers
5k views

Zooming to layer extent in PyQGIS? [closed]

Regarding my plugin pyqgis 2.2, i can load a vector layer succesfully. But when i try to zoom to the layer extent it does not work. How to do in order to zoom to the layer extent? I have just ...
5
votes
1answer
573 views

Can I set the Project in QGIS to display data at Zoom Full on startup?

I have a project with several .qml files assigned to SHP files with the same name but different data. I am just changing the SHP files, but when I start the project with different SHP I see just the ...
5
votes
2answers
10k views

Inserting zoomed-in plot with full scale plot in sp package in R

I am using the sp package in R to plot sampled points along a river. However, I would like to zoom in to a sampled area of the entire river, and plot this zoomed area on the full length of the river. ...
5
votes
1answer
2k views

Leaflet Basemap zoom to maximum

When I zoom to maximum; more than 18 the basemap is gone. How can we keep the basemap even when we zoom to maximum? This is my plunker example
5
votes
1answer
1k views

How to make OpenLayers 3 behave like Google Maps when using mouse scroll

Google Maps API shows a message over the map when a user scrolls with mouse over the map. The message advises the user to press the Control key while scrolling with the mouse over map. This is a very ...
5
votes
2answers
3k views

Zooming to WMS layer after CQL filter in OpenLayers?

I created a layer that contains points and I added it to a map as WMS layer in OpenLayers. I did a CQL filter and it works but I'd like to zoom to the selected point when I worked with getextent or ...
4
votes
2answers
8k views

Arcpy zoom to selected features not working

I'm writing a python script to automatically take some snapshots of my ArcMap in 10.2, but I can't get the zoom to selected features tool to work properly. I have a layer called carereport, which I ...
4
votes
2answers
11k views

OpenLayers2 - zoom to selected feature

If I have this vector layer: var vectors = new OpenLayers.Layer.Vector("vector", {isBaseLayer: false}); var feature = new OpenLayers.Feature.Vector( OpenLayers.Geometry.fromWKT( ...
4
votes
2answers
12k views

Leaflet layers on different zoom levels. How?

I've added a polygon layer and a point layer to my leaflet map. I would like the points to appear after a certain zoom level or when a "click" event occurs e.g. (polygons.on("click", function....) ...
4
votes
1answer
13k views

Zoom to polygon bounds on click. Leaflet ´, GeoJSON

I have a leaflet map with a lot of polygons (borders). I would like to zoom to the bounds on the polygon, when the user click. Until now its only possible for me to zoom to the the bounds of all the ...
4
votes
2answers
546 views

Change zoom factor of QGIS programmatically with PyQGIS

I would like to change the zoom factor of QGIS dynamically without restarting QGIS. The changed settings I would like to use for a plugin would be that it let's me dynamically change the zoom ...
4
votes
1answer
85 views

QGIS - zoom extent in project file?

I have about 600 folders with shapefiles always having the same filename per folder (which contain different data, of course). I've created one QGIS project file to open those shapefiles per folder ...
4
votes
1answer
3k views

Leaflet: Scroll wheel controlling map zoom and not drop down menu

Edited 6/19/2015 I have a custom leaflet control box with a drop down menu. When I use the scroll wheel over the menu, the map changes zoom level instead of scrolling the menu. The problem occurs ...
4
votes
2answers
2k views

Label font size and scale QGIS 3.0

How can I make it that the font size of the label changes when I zoom in and out? I have a polygon and I want the label get bigger when I zoom in and smaller when I zoom out (just like the polygon ...
4
votes
3answers
2k views

Basemap layer disappear on print. Only happens with max zoom

I am fairly new to arcgis, please bear with me here. ISSUE: I uses standard esri.dijit.Print for map printing. The base map displays normally in my map pane at all zoom levels. The printing ...
4
votes
1answer
90 views

Zoom to feature by clicking cell in the Attribute Table

I have a layer which has FID field representing the unique ID of features. In QGIS, there is a Zoom to selected rows button on top of the Attribute Table. It has a shortcut (Ctrl + J) and it doesn't ...
4
votes
1answer
1k views

How to turn off OpenLayers 4 smooth zooming

After upgrading from OpenLayers3 to OpenLayers4, the zooming has changed. Now the user can zoom to zoomlevels between integers. It does not look okay for some raster layers. Good (same as source ...
4
votes
1answer
1k views

Converting miles above ground to zoom level?

I've got a spec that details what features are to appear on a map at certain number of miles above the earth. So for example "Render this point when closer than 400 miles above the earth". How do I ...
4
votes
2answers
1k views

Get/Define extent of ol.source.tile xyz

I have a series of tile sources equating to different map providers at specific resolutions and I would like to set an extent so that when the relevant layer is selected, the map pans and zooms to the ...
4
votes
2answers
12k views

Center And Zoom function using ArcGIS API for JavaScript?

I'm trying to insert x, and y coordinates manually through input text, and center the map and zoom it to that point. I have this code: var x = $("#x").val(); var y = $("#y").val(); var point=new esri....
4
votes
1answer
913 views

How to zoom to an ILayer?

I used IFeatureLayerDefinition.CreateSelectionLayer() to create a new IFeatureLayer then i cast this one to ILayer and set it to the Map, my problem is that i can't zoom programmatically to this ...
4
votes
1answer
2k views

What are possible values of iconSize in Leaflet Marker Icon Options?

I have a very standard script: var redIcon = L.icon({ iconUrl: '1.png', iconSize: [10, 10], // size of the icon iconAnchor: [5, 5], // point of the icon which will correspond ...
4
votes
1answer
938 views

Select features and zoom to selection on standalone QGis application

I'm trying to select and zoom on selected features on standalone QGis application. Selection seems to work, console shows me list of selected items and they are exactly I expected. ids = [] for f in ...
4
votes
1answer
415 views

Zoom hangs ArcGIS API for JavaScript application?

I'm using ESRI arcgis 3.13 I have map with minZoom set to 3. When user tries to zoom in to level 19, the program just hangs and after a while, comes back with a generic browser error not from the ...
4
votes
1answer
1k views

Leflet js style geojson layer according to zoom level

Leaflet js beginner following/adapting the choropleth example. I need to get something like this mapbox map where the feature styles change according to zoom level. I am loading a line geojson that ...
4
votes
5answers
3k views

How to disable double-click zoom in Arcgis Javascript API

I am using ArcGIS java script API for creating map. I am trying to disable the double-click zoom in the map. Here is link of my map: http://urbanaccessregulations.eu/mindcrew/mobile-popup.html I used ...
3
votes
3answers
4k views

Zooming in Qgis print composer

Whenever i zoom in print composer it jumps either in or out in steps not smoothly. I can not zoom progressively neither can i choose an area by using the magnifier. I am working on a map of islands ...
3
votes
3answers
3k views

Zoom map to a scale in Leaflet

I am preparing a printable map in leaflet. For this purpose I would like to make a map zoom to a particular scale eg. 1:500 or 1:1000. But Leaflet zooms a map based on the extend and zoom level only. ...
3
votes
1answer
184 views

QGIS: zoom further than threshold in WMTS

Is there a way to zoom further than the threshold allowed by a wmts feed? Of course the idea is not to download any more images as that would be impossible. I just want to zoom on the already ...
3
votes
1answer
2k views

ZoomIn or ZoomOut on click

I have this map with two controls <!DOCTYPE html> <html> <head> <title>Simple Map</title> <link rel="stylesheet" href="http://openlayers.org/en/v3.17.1/css/...
3
votes
2answers
329 views

Aerial imagery showing in different colour while pan/zoom GeoServer

I have image/tiff files of a small aerial imagery. I published it under ImageMosaic plugin (GDAL plugin installed), but when I pan or zoom the map in OpenLayers preview I am getting different colour ...

1 2 3 4 5 7