Skip to main content

Questions tagged [zoom]

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

Filter by
Sorted by
Tagged with
119 votes
14 answers
314k 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
mlo55's user avatar
  • 1,341
26 votes
4 answers
44k 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,...
Jandroide's user avatar
  • 483
24 votes
1 answer
20k 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 ...
ajayel's user avatar
  • 413
20 votes
4 answers
22k 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.
Zachary's user avatar
  • 6,190
18 votes
9 answers
25k 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 ...
JPH's user avatar
  • 181
18 votes
4 answers
10k 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] ...
Ben 's user avatar
  • 181
17 votes
3 answers
10k views

Zooming to selected feature using PyQGIS

I want to create a function that selects a feature and zooms to it (similar in QGIS). Therefore there is following function: QgsMapLayerRegistry.instance().addMapLayer(self.vlayer) def zoomTo(self): ...
Martin's user avatar
  • 2,918
16 votes
2 answers
24k views

Detecting zoom change in OpenLayers

There is no appropriate zoom event listener in OpenLayers v5.3 yet, but there is a workaround suggested in this ticket: You can use this.view.instance.on('change:zoom', evt => console.log(this....
yaugenka's user avatar
  • 829
14 votes
3 answers
4k 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 ...
Hannes Ledegen's user avatar
12 votes
1 answer
25k 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....
Saud 's user avatar
  • 711
11 votes
2 answers
3k views

Tying visibility of features to zoom level by attribute in QGIS

I know how to make the visibility of an entire layer conditional on the zoom level. Is there a way to do the same thing for specific features? I have a road data set, where each feature has a class ...
larsks's user avatar
  • 1,256
11 votes
3 answers
26k 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....) ...
LAC's user avatar
  • 611
11 votes
2 answers
10k 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: ...
Brain's user avatar
  • 346
10 votes
1 answer
2k views

Zooming feature without selecting it using PyQGIS

When I need to zoom to a feature, I have to select it first using layer.select(feature.id()) then I can zoom using mapCanvas.zoomToSelected(layer). layer = iface.activeLayer() layer.select(1) iface....
Kadir Şahbaz's user avatar
9 votes
6 answers
44k views

Zooming/panning map in QGIS layout independently from frame?

I am coming from ArcMap. Working in the layout view, I had buttons to zoom/pan data and other buttons to zoom/pan the view itself. In QGIS, I can't seem to be able to achieve this. The only buttons I ...
Faustin Gashakamba's user avatar
9 votes
4 answers
23k 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: ...
ianbroad's user avatar
  • 9,141
9 votes
5 answers
4k 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 ...
joseph_k's user avatar
  • 1,441
9 votes
2 answers
10k 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 ...
user35117's user avatar
  • 929
9 votes
1 answer
212 views

Zooming to each vector layer extent, one at a time, using PyQGIS

I'm trying to write a python script that zooms to each layer's extents and then exports the canvas as an image after every zoom. I wrote a for loop that iterates through each layer, makes each one ...
I Love Mapping So Much's user avatar
9 votes
1 answer
13k 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 ...
Kadir Şahbaz's user avatar
8 votes
3 answers
39k 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....
gis_dev's user avatar
  • 83
8 votes
1 answer
3k 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.
Kevin Malone's user avatar
7 votes
1 answer
11k views

Leaflet Basemap zoom to maximum [closed]

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
Rabie Ben's user avatar
  • 1,246
7 votes
1 answer
21k 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 ...
LAC's user avatar
  • 611
7 votes
3 answers
14k 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 ...
obrob's user avatar
  • 887
7 votes
4 answers
4k views

Point from GeoPackage disappears when zooming in QGIS

In QGIS 3.4.1 I had a vector layer stored in GeoPackage format with a text field ("lbl_text") that was being used to create labels on a map. After creating three points I decided it would be ...
Sangster's user avatar
  • 193
6 votes
4 answers
6k 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...', ...
bucek's user avatar
  • 191
6 votes
2 answers
12k 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 ...
gast421's user avatar
  • 71
6 votes
1 answer
6k 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 ...
nhorner's user avatar
  • 83
6 votes
2 answers
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'...
wouter's user avatar
  • 69
6 votes
2 answers
1k views

How to disable map navigation in the ArcGIS Server JavaScript API v4.x

In the older version 3.x of the ArcGIS Server JavaScript API, it was possible to disable map navigation using disableMapNavigation() as explained in Disabling map in ArcGIS API for Javascript What is ...
Stephen Lead's user avatar
  • 21.2k
6 votes
2 answers
3k 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 ...
geraldo's user avatar
  • 970
6 votes
1 answer
1k 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 ...
Jevgenij's user avatar
6 votes
1 answer
2k 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 ...
Falinsito's user avatar
5 votes
3 answers
3k 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 ...
Pedro Martín's user avatar
5 votes
3 answers
7k 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. ...
poshan's user avatar
  • 771
5 votes
1 answer
479 views

Showing points as one big point

I've already made a map in QGIS, but the problem is that all the points of the coordinates are concentrated in one area in the map and I have to zoom in to see that it is several points. Is there any ...
Wafaa's user avatar
  • 51
5 votes
2 answers
7k views

Disable double click zoom event in Leaflet for R

Is there a way to disable the double click zoom in Leaflet for R? I've created a Shiny app that changes polygon styles when a country's region is clicked on/off. If you select and immediately ...
Lauren's user avatar
  • 1,902
5 votes
1 answer
964 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 ...
vztk's user avatar
  • 173
5 votes
2 answers
14k 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. ...
user2507608's user avatar
5 votes
1 answer
580 views

Automatically zoom to feature which is edited in attribute table in QGIS

I want to edit many features in the attribute table, for which I have to see imagery in the background of the features. To speed the process up, ideally I do not want to use the mouse to click ...
jens wiesehahn's user avatar
5 votes
2 answers
2k views

Setting zoom level from table attributes using ArcMap

Is there anyway to set the zoom level after double-clicking on black arrow in table attributes? It seems to default to 1:4,000. As I'm checking over hundreds of areas and it would be nice to be able ...
Mr Mystery Guest's user avatar
5 votes
2 answers
13k views

How to control the zoom amount in Cesium.Camera.flyTo ?

The following code flies the camera to a particular destination. But how do I control the zoom on the particular destination? viewer.camera.flyTo({ destination : Cesium.Cartesian3....
LokeshSreekanta's user avatar
5 votes
1 answer
3k 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 ...
dibs487's user avatar
  • 408
5 votes
1 answer
3k views

How to decide geohash length based on zoom level?

I want to decide geohash length based on zoom level, how can I do that because so far I am unable to find any standard way to do so? For example, current zoom level is 10 and geohash is "...
VVB's user avatar
  • 151
5 votes
1 answer
3k views

Leaflet 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 ...
Nico P's user avatar
  • 53
5 votes
2 answers
4k 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 ...
Badr4si's user avatar
  • 93
5 votes
1 answer
1k views

Loading memory layer into map canvas and zooming to it with PyQGIS

I would like to load a vector memory layer into the map canvas with PyQGIS. The background is, that I create a memory buffer layer around point data. While iterating the points I would like to ...
dassau's user avatar
  • 417
4 votes
2 answers
9k 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 ...
user2581350's user avatar
4 votes
2 answers
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( ...
Alfredo's user avatar
  • 91

1
2 3 4 5
9