Questions tagged [openlayers]

Use when the version you are using of the OpenLayers JavaScript client toolkit is 3 or later

575 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
930 views

Vector tiles from GeoServer seem to work, but invisible

I run GeoServer 2.10.0 powered by a vector tiles plugin (geoserver-2.10-SNAPSHOT-vectortiles-plugin.zip) on Ubuntu Server 16.04. Following this official tutorial I tried to visualize a simple map in ...
4
votes
1answer
152 views

Styling rendered mbtiles in offline web-map service

I am building a digital cartography tool that needs to run completely offline. As a basis, I downloaded a .mbtiles-file corresponding to the area I want to survey and I am running the excellent ...
4
votes
0answers
516 views

Mapbox GL JS style vector tile interaction in OpenLayers?

I am currently researching different approaches for integrating vector tiles (especially MVT and/or GeoJSON tiles, served from GeoServer) with OpenLayers (^4.0.0) in a manner that would retain access ...
4
votes
0answers
230 views

Mapcache zooming problem

I am using mapcache for caching map raster data. Everything works fine except the map zooming, because at the some zoom level i am getting pink tiling images. This is my mapcache xml file: <?xml ...
4
votes
0answers
688 views

mapbox styling of vector tiles with many features in openlayers 4

I am trying to process a vector tile source in OpenLayers using the VectorTile layer and source in OpenLayers 4.1. The backend is serving pbf (mvt-based) tiles from an mbtiles source. The tiles have ...
4
votes
0answers
254 views

Thematic map exported using QGIS2Web is extremely laggy

I have made a world thematic map and added layers of data for creating graduated color scheme on the country level. I need a interactive map as an output which shows values when user hover over any ...
4
votes
0answers
237 views

OpenLayers 3 support for WMS 1.3.0 CRS:1

I am trying to get a TileWMS layer working with the Coordinate System as CRS:1 defined in WMS 1.3.0. By defining the right projection stated in CRS:1, axisorientation as 'es', I could get it working ...
3
votes
0answers
35 views

Displaying QGIS's “Map Tips” in OpenLayers?

Still a little new to QGIS and Openlayers. How would you display QGIS's "Map Tips" into OpenLayers? I am currently using QGIS 2.18 and have the latest update in Openlayers. In QGIS, I have created a ...
3
votes
1answer
68 views

Displaying GeoServer vector tile using OpenLayers?

I'm using OpenLayers 5.3 and GeoServer to create a web map. Previously, I was using Leaflet and was able to display my layer as a vector tile. Now, I'm having issues getting the vector tile to display ...
3
votes
0answers
356 views

Why is the attached WMS service not working with QGIS and QGIS2WEB?

I am using QGIS2WEB (open layers) to develop a small platform with geodata. I am having trouble integrating the following WMS service into my webmap: http://geoportal.frankfurt.de/opendata/...
3
votes
0answers
6k views

Using Google Maps Tile Service with OpenLayers 5

How to pass Google Maps API key to access tile service using OpenLayers 5. Some google searches suggested me to set the url of tile layer as http://mt.google.com/vt/lyrs=m&x={x}&y={y}&z=...
3
votes
0answers
329 views

Create Drag Drop Pegman Using OpenLayers 4

Here is a fiddle of my progress: http://jsfiddle.net/pegues/a5mn1ogu/ I've been trying to figure out how to create a drag and drop marker using OpenLayers like what is found with Pegman in Google ...
3
votes
0answers
75 views

Allow user to pan after once 'box' is draw in Openlayer2

I am using this example http://dev.openlayers.org/examples/draw-feature.html to draw a box on a map using 'draw box' checkbox option. Now I want , After drawing box I can be able to pan on map ...
3
votes
0answers
130 views

Geoserver: how to filter a layer related to another layer?

I have the following problem: I have 2 vector layers from PostGIS datastores: "firepoints" and "threats". The corresponding tables "firepoints" and "threats" have IDs and other attributes. They are ...
3
votes
0answers
626 views

Modify features not updating on vector layer

I have point vector layer in my application.Now I am trying to modify its coordinates. I am able to do it but its not reflecting on layer. Here is code I am using : var selectInt = new ol.interaction....
3
votes
0answers
627 views

heatmaps with local maxima, weight, api functionalities

I am looking for a heatmap vizualization on a map, which shows: local maxima: that means that you always see some "red spots" regardless the zoom. See the picture below. enables to set a weight to ...
3
votes
0answers
119 views

Image & limit user access by poly

Wondering how do I clip images to polygon outlines in a web map application based on OpenLayers or Leaflet? How can I limit web map users to see (visualize; qualitative) or query (quantitative) within ...
3
votes
0answers
365 views

Maintaining Curves in Mapbox-GL

I am trying out Mapbox-gl-js as an alternative to our current openLayers 3 solution. This is primarily due to a desire to shift away from raster backgrounds and to utilize the webGL and vector tile ...
3
votes
0answers
633 views

Access Elements in SVG with Openlayers 3 using forEachFeatureAtPixel()

I am trying to access elements (id, style) of a SVG image in Openlayers 3. I tried to link different examples, but the problem is that displaying a SVG is only possible with ImageStatic() and the SVG ...
3
votes
0answers
2k views

Openlayers 3 different projection Geojson view

My map projection is EPSG:3857. And I want to show a GeoJSON data which has EPSG:4326 projection. var source = new ol.source.Vector({ url: 'http://localhost:15485/api/...
3
votes
0answers
658 views

Draw d3 svg circles on openlayers 3 maps

I am new to openlayers and d3. I tried following example http://openlayers.org/en/master/examples/d3.html I see we need to add d3 features on a canvas and project it on an openlayers Vector layer. ...
3
votes
0answers
523 views

SLD format in modern OpenLayers library

It seems like old versions of OpenLayers supported SLD format. There was a construct like: var format = new OpenLayers.Format.SLD(); But I cannot find it in modern OpenLayers library. I checked ol....
3
votes
0answers
690 views

Custom Dash style in OpenLayers 3?

I know that it is possible to make a line or polygon with dashed stroke. It can be done with the following way, for example: var myStyle = new ol.style.Style ({ stroke: new ol.style.Stroke({...
2
votes
0answers
30 views

MapServer Query Raster for Pixel Value at Point

I am working with a MapServer and a map file that is displaying a color-relief image. LAYER NAME "sum" DATA "sum.vrt" TYPE RASTER STATUS ...
2
votes
0answers
32 views

Drawing an Ellipse in Openlayers 4 with interaction

In OpenLayers 2, I could easily create a Control to draw an ellipse like this: new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.RegularPolygon, { handlerOptions:...
2
votes
0answers
74 views

Converting GeoJSON file to vector tiles

I need to display huge GeoJSON file using OpenLayers. So I decided to use VectorTiles. Library geojson-vt.js works perfectly for me, but unfortunately it requires my GeoJSON file to be preloaded on ...
2
votes
2answers
74 views

OpenLayers overlay bubbling problem

Regarding on the previous question asked https://gis.stackexchange.com/a/303372/119333, solution from best answer is implemented and its working. I am rendering tab panel inside popup overlay and you ...
2
votes
0answers
80 views

Rendering huge vector data whose geometry is fixed but attributes are changing every 2 minutes?

I want to create an application displaying road network with traffic details. I am using OpenLayers 3 and GeoServer 2.14 for this purpose. My data (stored in PostgreSQL+ PostGIS) has around half a ...
2
votes
0answers
57 views

Using OpenLayers with alternative map source to integrate Google Street View?

I am researching any possibilities of Using an alternative map source other than Google that I can integrate Google Street View. Due to the drastic rate changes for Google Maps API I would like to ...
2
votes
0answers
418 views

OpenLayers: change cursor upon hovering over feature

I want to change the mouse cursor to a pointer when the mouse is hovering over a feature. I currently have the following: this.map.on('pointermove', evt => { if (!evt.dragging) { this.map....
2
votes
0answers
264 views

How to get extent from current resolution in OpenLayers 3 for printing

I need to print a map with a fixed scale of 1:500 horizontally on a A4 paper (297x210mm). The map is done with Openlayers, the print request is sent to QGIS server using WMS getPrint function. Till ...
2
votes
0answers
67 views

WMS - understanding <Min> and <MaxScaleDenominator>

I am working on a personal web gis client and the first thing I am implementing is support for OGC WMS 1.3.0. Right now, I am in the middle of greying out layers in my layer tree which are not ...
2
votes
1answer
183 views

How to move geolocation in OpenLayers 5 programatically

My geolocation in OpenLayers is incorrect by more than 5000 meters. I want to correct this issue, how can I programatically move my geolocation to the most accurate location? Or is it even possible?
2
votes
2answers
2k views

Add a vector GeoJSON layer in OpenLayers 5.1.3

I am trying to add a simple capitals GeoJSON vector layer to my map for basics learning, without managing to get it to work. I spent hours of roaming the documentation API. As follow is my script: ...
2
votes
1answer
409 views

Openlayers 5: Remove vertex from geometry (polygon)

I could able to remove the recent modified vertex of a feature using removePoint method of modify interaction, as well as using deleteCondition event of modify interaction. However, that is not what I ...
2
votes
0answers
414 views

GML/SVG for indoor map in OpenLayers 4?

I am new to GIS world and trying to incorporate OpenLayers with GML or SVG. I am building a map engine and one of the features should be support of indoor maps. It can be accomplished with a static ...
2
votes
0answers
121 views

Caching WFS requests using OpenLayers?

I'm investigating how we can improve our vector-layer performance of our GIS component (based on openlayers 4). OpenLayers keeps all the fetched vector features in memory. This becomes a problem ...
2
votes
2answers
154 views

Generate WFS-T insert and delete requests using wfs-t openlayers3

I am trying to insert feature like point, line, etc on "india_ds" wfs layer map using wfs-t but not able to make successful POST request using openlayers3. I have post my script and error. I have ...
2
votes
0answers
158 views

How to synchronize map context (bounding box and zoom level) only with ol-cesium?

I posted this question on StackOverflow, but since there is no answer yet and as recommended in a comment, I'll ask it here too: I'm programming a page where a 2D and a 3D map are side-by-side as in ...
2
votes
0answers
175 views

Limiting OpenLayers heatmap to vector feature boundaries

I'm looking to create a heatmap using OpenLayers, which is possible using the ol.layer.Heatmap class. However, I want to limit the visualisation of the heatmap effect to span just the underlying ...
2
votes
0answers
368 views

Openlayers 4 - Load WMS image source require authentication

I try to load WMS image layer with openlayers 4.6 and angular 5, the code is: const syr_layer = new ol_layer_Image({ source: new ol_source_ImageWMS({ url: 'serverurl', crossOrigin: 'anonymous'...
2
votes
0answers
55 views

Make Mollweide oval

On base of this this thread i have a map with xyz-tilelayers in Mollweide projection. Now, the tilelayer is presented in rectangular form, parts of the world are duplicated and presented in a very ...
2
votes
0answers
184 views

QGIS server ignores GetFeatureInfo request tolerance

I'm using getGetFeatureInfoUrl to retrieve features from a WMS layer. Tolerance is a server side parameter, QGIS server offers optional parameters to define the tolerance for point, line and polygon ...
2
votes
0answers
75 views

click on features with some problems

I'm using OpenLayers to build a map with some features that are polygons, together they are a heat map which shows the number of issues in that area. When I click on a feature, for now, it shows an ...
2
votes
0answers
202 views

Not able to pass the parameters to SQL view in GeoServer

I created a sqlview(villagefilter_view) in GeoServer and added one parameter %vilselected% select * from niphad_survey where village=%vilselected% Name: vilselected Default value: 'Ranwad' ...
2
votes
0answers
109 views

Great circle rendering of satellite ground tracks reversed in southern hemisphere

I'm working on rendering some satellite ground tracks from postgis, through geoserver, and onto openlayers. The python library I'm using to get lat, lon from TLE data isn't perfect, so there are ...
2
votes
0answers
103 views

How do I add a caption(legend) inside a button when turning on / off a layer?

I'm working with OpenLayers 3 on creating a webgis I want to add a caption (png image) of a map via a button, as I demonstraded. When someone click the button I would like the caption image to appear ...
2
votes
0answers
1k views

OpenLayers 4 - get resolutions

I want to create combobox with all available scales, that could replace standard zoom slider control. As far as I know, there is no scale attribute in OL and scales must be calculated from resolutions....
2
votes
0answers
40 views

Reporting tool for Openlayers

Is there any reporting tool that can be used to build custom PDF reports with maps from OpenLayers? I tried iReports, but i was not able to create such report. Any suggestions?
2
votes
0answers
138 views

GeoWebCache 1.11.0 application/json not supported for GetFeatureInfo

I have been trying to find out whether or not I can serve a response to a GetFeatureInfo request from my GeoWebCache in a JSON format, but I have been coming up empty. My capabilities list doesn't ...