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
0answers
23 views

Automatic zoom when uploading shapefile R

I would like to set a zoom on the shapefile's canvas when it is uploaded. is there a function for that? Here is my script that allows adding the shapefile after reading with OGR : observeEvent(input$...
0
votes
1answer
39 views

React-Leaflet: Marker has wrong position after zoom out

When I show a marker in the center of the map it is OK. But when I zoom out, the marker is like staying at the same place. Finally its position is very wrong. Why is it not moving together with the ...
1
vote
0answers
17 views

Creating ArcGIS Online webapp builder Cemetery search?

I created an ArcGIS Online webapp builder app for a cemetery project. I loaded a relationship class into ArcGIS Online that relates plot polygons to a table of interred individuals. It is a 1 to many ...
0
votes
0answers
20 views

Polygon Google Maps v3 render problem in zoom

I followed this documentation https://developers.google.com/maps/documentation/javascript/examples/polygon-simple, but I have a problem with zoom and polygons. Depending on the zoom level, the polygon ...
0
votes
1answer
24 views

Increase max zoom for large scale raster with GeoServer

I'm serving a large scale raster (warehouse map) with GeoServer. I consume the WMS in a Leaflet web client and coordinates are projected according to EPSG:3857. But it seems that maximum zoom is ...
0
votes
1answer
105 views

OpenLayers 5 ZoomToExtent API

I have a button with class search_ and when clicked i want to change the map view to a specific extent. I am using ZoomToExtend API. Here is what i try, without anything working: var roadlayer = ...
1
vote
0answers
28 views

How do I zoom in to an area using the Copernicus Open Access Hub?

I can pan but I cannot zoom in when using the Copernicus Open Access Hub. This makes it difficult to order data. I need to know how to zoom in on an area. I know how to zoom to a product. ...
1
vote
1answer
46 views

Preventing map move on zoom in Leaflet?

How to prevent the map from moving when a user zooms in with scrollwheel? I would like the center to be preserved in any case. var mymap = L.map('spotmap', { dragging: false }).setView(...
1
vote
1answer
42 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
28 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
142 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
71 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
502 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
37 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
29 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
564 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
561 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 ...
1
vote
2answers
191 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
32 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
53 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
67 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
246 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
238 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
349 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
131 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
128 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
50 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
41 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
515 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
180 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
172 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
87 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
128 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
143 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
61 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
416 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
450 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
59 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
391 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
271 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
256 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
54 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
64 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
1answer
943 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
202 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 ...
2
votes
2answers
160 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
837 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
190 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 ...