Skip to main content

All Questions

Tagged with
1 vote
0 answers
471 views

How to load layer from geo server to google maps java script api? [duplicate]

i am tring to add geoserver layer to google maps js api. geoserver installed in local machine its running on local host. layer is alredy there in Geoserver when insatlled. i tried some code. its not ...
Velugoti Venkateswarlu's user avatar
2 votes
0 answers
741 views

Select interaction with openlayers: multi equals true. How to store all layers?

I have a select interaction, with multi option equal to true. This interaction is used with popup, following code https://viglino.github.io/ol-ext/examples/popup/map.popup.feature.html I store the ...
user207825's user avatar
1 vote
1 answer
220 views

How to snap a graphic to a vector basemap layer

I'm using the Sketch Wdget in a map for drawing graphics. Is it possible to snap the drawings (polygons for example) to the roads that are part of the vector tile layer i'm using as a base map?
Normal's user avatar
  • 133
1 vote
1 answer
1k views

How to get layers name added to OpenLayers map v6.14.1?

I'm trying to get name of layers added to OpenLayers v6.14.1, I found some methods but they were very old for instance: "map.layers" and one other method I found was : let addLayers = map....
Navid's user avatar
  • 859
2 votes
1 answer
643 views

Make data layer disappear and different one appear on click in Leaflet

I'm mapping COVID vaccinations per state and per county in the US. I have state data as well as county data displaying properly. I'm trying to make it so that when I click on a state it zooms in to ...
liso_maps's user avatar
  • 103
0 votes
1 answer
333 views

Open Layers 3 Click in a layer

I'm trying to work with lots of layers and each one of them need a different click action but, with all my layers this code is starting to get confuse and messed up. I found out that in Open Layers 2 ...
Alfredo Marin's user avatar
0 votes
1 answer
205 views

How to create an interactive based filter (checkboxes) with multiple layers using Carto VL

I'm relatively new to coding, and have been developing a map using Carto VL and Mapbox. I've found a way to create a filter within a map where users can turn off and on different categories within ...
user169554's user avatar
1 vote
1 answer
1k views

Get all the Tile layers added to the map using OpenLayers?

I want to get all the Tile layers which are added in the base_map. When I am using map.getLayers() I get the list in the array_. How can I identify all the charts and remove the individual charts. ...
Piyush's user avatar
  • 283
1 vote
0 answers
714 views

Removing multiple layers in OpenLayers

I have created a project where I need to add and remove multiple layers in OpenLayers. The layers are from shapefiles that are available on a node server. I loop trough a list of all the names of the ...
Stephen's user avatar
  • 285
4 votes
1 answer
8k views

Satellite image in OpenLayers

I would like to know if there is a satellite map for OpenLayers. I made the following code: new ol.layer.Tile({ // A layer must have a title to appear in the layerswitcher title: 'Stamen', // ...
CoderCoder42's user avatar
2 votes
0 answers
115 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:...
Yann Fradier's user avatar
0 votes
1 answer
830 views

Looping through WMS Layers on a map

I am drafting an application with Leaflet. Basically, I need to add several WMS layers and then cycle through them with a timed loop. This is the code (still a draft, I don't tested it) but I am ...
Fabio Marzocca's user avatar
1 vote
1 answer
2k views

Openlayers4: cannot get layers from group layers

I am having super hard times trying to figure out how to get the layers of my ol.Map object. I have two group of layers (ol.layer.Group). One is called (property 'title') "Basemaps" and contains two ...
umbe1987's user avatar
  • 3,785
1 vote
0 answers
442 views

Two CQL Filter not working on a layer

I have wms layers like: LAYERS=layer1,layer2&CQL_FILTER=(type=10);INCLUDE it works fine but when I add another filter with 'and' operator to layer 1 it does not show on map. I am adding second ...
Furkan's user avatar
  • 11
3 votes
1 answer
10k views

Adding GeoJSON layer on leaflet?

i'm trying to load a geojson file on a leaflet map. here is the code : body : <!DOCTYPE html> <html> <head> <title>map</title> <link href="leaflet.css" type="...
NanBlanc's user avatar
  • 136

15 30 50 per page