Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zoom]

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

1
vote
1answer
31 views

Disable wheel scroll zooming with ArcGIS Javascript API 4.11

I want to disable wheel scroll zooming so the viewer can scroll down the page without losing the cursor in the map. But this code freezes scrolling altogether, so when the cursor is over the map, ...
-1
votes
1answer
26 views

Zoom To Query result

I have SQL query in my code and after it responses I want to go to query result extent. What I have now is that after respond it goes somewhere in Atlantic ocean. Here is my code: //rukis Seqmna ...
1
vote
0answers
19 views

zoomScale() doesn't work in QGIS 2.14 standalone c++ application

Can't set scale for my canvas with mapCanvas.zoomScale(50000); Seems like canvas is zooming to 1:1 and for a few seconds I can't zoom in or zoom out with mouse wheel. Any suggestions?
2
votes
0answers
102 views

Increasing zoom level in 3D View QGIS Desktop?

I would like to increase the zoom level for my mosaic raster image in the 3D View of QGIS Desktop 3.4.4. I made a mosaic out of four raster images downloaded through the STRM-plugin for DEM data. ...
1
vote
1answer
60 views

In OpenLayers how do I prevent linestrings and polygons disappearing as I zoom out?

I can see how to do this using a feature style function with 2 styles (similar to the Custom Polygon Styles example). One would be the normal linestring/polygon one and used at high enough zooms. The ...
4
votes
1answer
220 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 ...
0
votes
0answers
36 views

Trying to figure out ArcGIS API's `mapScale` variable and how it maps to OpenStreetMap's zoom level

I'm using ArcGIS' /export endpoint to get an .svg of a few map layers given a specific bounding box. However, when I apply the .svg as an image overlay to OpenStreetMap's world map using Leaflet, the ...
1
vote
1answer
28 views

What equivalent zoom level would ISS astronauts would be seeing the Earth?

Like for Google Maps, there are 20 zoom levels. What zoom level would approximately give us the view that astronauts have?
1
vote
2answers
343 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 ...
3
votes
2answers
327 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 ...
0
votes
2answers
109 views

Zooming in on raster file in R

I used the nsidcICE function located here: https://github.com/cran/raster/blob/master/R/nsidcICE.R and the following code to open a sea ice raster file. However, I would like to overlap vector points ...
1
vote
0answers
29 views

Openlayers 2: [In Touch] Pinch zoom action triggers click event at the end. How to prevent click on pinch zoom

Openlayers 2: [In Touch] Pinch zoom action triggers click event at the end. How to prevent click event registered on map getting triggered when pinch is done
2
votes
0answers
47 views

Python script to zoom to a city and export as PDF won't zoom to city [closed]

The script completes successfully but doesn't zoom to the given city. It does export to PDF with the correct name though. The map is the county wide extent and not zoomed to the given city. The print ...
1
vote
1answer
48 views

pygis zoom to selected layer

I selected the layer I want to zoom in and I can actually zoom in using the python console that Qgis provides using iface.zoomToActiveLayer() but if I do the same in my code, is like that line is ...
2
votes
1answer
225 views

Can I use a browser's developer tools to see the zoom level of current map in browser?

What I'm looking for Where a map is being served by Mapbox in my browser is there anywhere within the Chrome/Firefox Developer Tools where it shows the current zoom level as displayed on screen? ...
0
votes
1answer
200 views

Leaflet - Hide marker before zoom shows marker?

I have a few thousand markers which are grouped in feature groups which i show depending on the zoom level. At the moment i run the the show/hide function for each feature group after the event zoom ...
0
votes
1answer
268 views

Leaflet on mouse wheel event change zoom by delta

I am trying to find a way to change zoom by delta when using mouse wheel event (scroll) in Leaflet. E.g. current map zoom is on 0 and if "scrolled" into map, zoom should be 5. Also, zoom change ...
1
vote
1answer
99 views

QGIS Expand layer rather than zoom when reaching max zoom extent

When I zoom in to a layer in QGIS (specficially http://server.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer ) I reach a point where going further beyond I get tiles that say "Map data ...
0
votes
1answer
102 views

“Zoom to search result” function in qgis2web?

I'm a beginner in GIS and have almost no experience in coding but I'm slowly working my way through everything. Right now I'm trying to make an exported qgis2web map a bit more interesting by setting ...
0
votes
1answer
42 views

OpenLayers 3, PostgreSQL, WFS: Extent jumps back to initial extent if zoom out too far

I'm working on an app using OpenLayers 3 with PostgreSQL/PostGIS tables and views, and an Esri basemap. The web app loads a set of features using an array of attributes from PostGres table (a view) ...
-1
votes
2answers
40 views

How to maintain current zoom level when panning to a new feature? [duplicate]

I want to speed up my work. How could I get ArcMap to stay at my current zoom level when panning to a new feature? What I am currently doing is using Ctrl+Enter to move through my attribute table and ...
0
votes
1answer
435 views

Are there high resolution images available for download on earthexplorer?

The problem with earth explorer GeoTiff files is, if you zoom in enough, the resolution is very fuzzy. If you want to look at your backyard, for example, that is impossible. If you use the earth ...
1
vote
1answer
139 views

Displaying labels from a lower zoom level?

In QGIS, is there a way to "pin" labels and features from a lower zoom level so that they appear higher up? For instance, considering a map of the US, it would be impossibly cluttered to show every ...
1
vote
1answer
151 views

Set zoom level to display full extent of specific layer when starting a project in QGIS

I have project in QGIS 3.2 with different shapefiles and WMS layer. When I start the projectfile (.qgs) I want the extent of the map to be the same as one specific WMS layer (same as the option "zoom ...
0
votes
0answers
77 views

OpenLayers 2: zoomToExtent with scale

I need to zoom map to show some selected features from layer. So I am creating a temporary layer with features and zoom to this temporary layer. The problem - usually the scale is too small, so I ...
0
votes
1answer
119 views

Higher than maxNativeZoom requests tiles

Leafet is requesting tiles while at a higher zoom level than maxNativeZoom from defined mapserver instead of just stretching the maxzoom sized tiles. It is creating a lot of 404s since my maxzoom is ...
0
votes
0answers
108 views

QGIS - changing WMS / ArcGISMapServer Zoom level

I've looked around for an answer to this but nothing seems to work. Basically, I'm printing maps with a WMS or ArcGISMapServer background (like World Topo). In print composer I can change the dpi of ...
1
vote
0answers
58 views

ol3 zoom with defined scale

I am trying to show map based on the gridset defined in geoserver, in such a manner that map zooms to that Scale only. Scale is as follow : 1:1000, 1:500, 1:400, 1:300 view = new ol.View({ ...
0
votes
1answer
402 views

How to Zoom Google Maps Javascript API to level 25

Cannot Zoom Google Maps Javascript API after 1:564 (zoomlevel: 20) in Mapstore. Can anyone help me to solve this cause my layer keeps on zooming but the map is stuck at zoom 20, I want to zoom it to ...
1
vote
1answer
371 views

Get extent on every zoom or pan of map

map.getView().calculateExtent(map.getSize()) I am able to get extent using the above but I want the extent on every zoom/pan of map.. do we have any functions that can do it? i looked at zoom ...
1
vote
0answers
52 views

Hidden layer with zoom level

I would like to display some layer according to max and min zoom levels. I tried with the method min / max zoom and resolution but without success. I specify that I use vector tiles. Here is my code:...
2
votes
2answers
301 views

Setting Min Zoom without base map using ArcGIS API for JavaScript?

How do I set min zoom for map without defining base map(User can't zoom out beyond that label)? Set min zoom with base map is working fine. For example: map = new Map("map", { ...
0
votes
1answer
228 views

Leaflet.TextPath: how to set zoom level from which text would be displayed

I am using the Leaflet.TextPath plugin for labeling polylines. It works fine into my Leaflet map, but I want to set the zoom level (scale-based visibility) from which labels would be displayed on the ...
1
vote
0answers
232 views

problem with zoom feature in QGIS 3.0

I am having a strange problem--currently using QGIS 3.03. I cannot zoom to any of my point layers (can't use zoom to selected, zoom to layer, etc.) But I CAN zoom to my polygon layers. Both are ...
0
votes
1answer
47 views

Geoserver WMS limiting map visibility by scale

In ArcGIS I can manually limit visibility of a map layer by specifying a min and max scale (see below). Is it possible to instead set this server-side on Geoserver? I've seen something similar in ...
1
vote
1answer
59 views

Editing OpenLayers viewer in GeoServer?

I would like to custumize the openlayer3 viewer integrated in the Geoserver (2.13) to have more zoom levels (by default there are 28 zoom levels with a zoom factor of 2). In other words, I would like ...
0
votes
0answers
58 views

Google Map cannot zoom less than 3 with custom tiles created with gdal

I have tiled a 2880 x 2880 image with gdal2tiles like this gdal2tiles.py -p raster -z 0-6 MyMap.png result It correctly create 6 folder with the tiles in them. My issue that I'm now trying to load ...
0
votes
1answer
793 views

Mapbox GL JS set Max Zoom level not working?

I cant seem to get my map to set a max zoom level. Here is a snippit of my code - var map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/cdickinson11/cjg49l1f305ou2rls3hd65a6s', ...
3
votes
0answers
167 views

Zoom in, zoom out, and pan tools cannot be toggled off in QGIS?

When I select the Pan Map, zoom in, and zoom out tools in the QGIS toolbar (version 2.18.16), I cannot toggle it off after using it. In efforts to toggle a tool from the toolbar off after using it, I ...
3
votes
2answers
137 views

Making raster dots appear bigger when zoomed out on the map, QGIS

I would like to create a visualisation in QGIS that lights up raster points in a different colour. I have the rather points lit up but when I zoom out on the map, they look very small (they are 1km^2 ...
0
votes
2answers
2k views

Disable pan and zoom in OpenLayers

I'm using the latest version of OpenLayers in my map application, and I need disable all zoom functions and panning for users. Zoom, mouse zoom, double click zoom, and control buttons zoom need to be ...
5
votes
1answer
772 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 ...
0
votes
2answers
180 views

Completely removing no data values from raster using ArcPy?

I have a layer called addLayer0 which is largely filled with nodata values. for l in list_dfs: l.panToExtent(addLayer0.getExtent()) where list_dfs is a list of all dataframes in the ...
1
vote
1answer
410 views

Zooming In and Out using ArcPy with ArcGIS Pro?

I have code that zooms a layout to a bookmark and then exports that layout to PDF. This step helps me produce maps on a large scale because I have about 40 bookmarks. However, if someone asks me to ...
1
vote
0answers
1k views

Dynamic leaflet scale / zoom / bounds in R Shiny Applications

I've dug into a few older stack exchanges on this topic, but am at a standstill. I am attempting to let leaflet dynamically resize in a large shiny app when the application is resized. I'm doing that ...
0
votes
0answers
123 views

Zooming to particular feature among selected features by feature id in PyQGIS?

Using QGIS 2.6 and PyQGIS, I want to zoom to features one by one on click among selected features list and change the colour on zoom without unselecting the other features. canvas=iface.mapCanvas() ...
2
votes
1answer
1k 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 "...
3
votes
1answer
727 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
0
votes
1answer
158 views

Adjusting Polygon Visibility with CartoCSS

I am attempting to adjust the visibility of a polygon layer in Carto by zoom level. To keep it simple for now I am looking to have the opacity of 1 from zoom 0-7 and opacity 0 from zoom 8+. I am ...
4
votes
2answers
882 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 ...