Questions tagged [zoom]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
51 views

Resize vector marker according to zoom (i.e. marker constant size in meters) in Leaflet?

I have a map with 20 markers on a geojson layer. They are all from the same SVG and represent a certain area on the map (meaning they represent a circle of constant radius in meter on the map). I need ...
0
votes
1answer
34 views

Map .pbf CRS in QGIS?

I am trying to learn the Vector Tile Map, and got one pbf file for one tile. I can load it into QGIS, but how can I know the CRS? http://PBFSERVER/13/2411/3080.pbf Update: I am trying to follow ...
0
votes
0answers
13 views

Black border around JPEG with world file at diferent zoom levels QGIS

I have noticed in the QGIS view port my georeferenced JPEG with a world file has black edges only above a certain zoom level. I have already specified 0 as the no data value. If I zoom in close to the ...
2
votes
2answers
63 views

Scaling tiles for missing zoom levels in Leaflet?

I have two sets of tiles. One for zoom level 10 and one for zoom level 14. However, I want to be able to see tiles on my map at zoom levels 9 through 15. For the nonexistent sets of tiles I want to ...
3
votes
0answers
27 views

QGIS 3 embedded forms - zoom or pan to child features

I have two tables and a relation defined on them via an 'in-between-table' (many-to-many relationship) like this: This gives me nice embedded forms like shown below: What I would like to achieve is ...
0
votes
1answer
21 views

Map that automatically zooms out [closed]

Suppose I have an online store in San Francisco, California. Most of my customers are from the Bay Area, but I do have some customers from the rest of the U.S. For my analytics platform, I want to ...
0
votes
1answer
41 views

Creating Select Then Zoom Tool using ArcPy? [duplicate]

I have been trying to create a tool to make a simple select then zoom to selected but I've been running into some issues. I've been using the code from this original posting (https://community.esri....
3
votes
1answer
118 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 ...
1
vote
1answer
59 views

Choosing correct zoom level to display given area in square km using Leaflet?

I would like to set the zoom on a Leaflet map based on an area (in km^2). I am looking for a simple function that would approximately convert an area of 510,064,472 km to zoom level 0 and (if I read ...
1
vote
2answers
51 views

zoom set to 4 but on get zoom shows zero ,OpenLayers

var map1 = new OpenLayers.Map('firstmap'); var wms1; var state1="<%=state%>"; var cql_filter1="st_nm='"+state1+ "'"; wms1 = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://localhost:...
0
votes
0answers
67 views

Auto zoom when uploading shapefile R / Leaflet

I would like to configure an automatic zoom at the canvas of the shapefile layer that I upload. For that it would be necessary that a function automatically detects the latitude and the longitude of ...
0
votes
1answer
261 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
28 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
42 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
32 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
235 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
79 views

Zooming in to area using 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
113 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
91 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
33 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
21 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
158 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
89 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
962 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
41 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
34 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
997 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
887 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
321 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
38 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
58 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
92 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
319 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
267 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
450 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
163 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
173 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
55 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
47 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
663 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
237 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
232 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
1answer
137 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 ...
1
vote
0answers
63 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
464 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
587 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
62 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
500 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
342 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
329 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 ...