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 [openlayers]

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

5
votes
0answers
827 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
0answers
460 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
201 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
239 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
230 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
275 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
87 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 ...
3
votes
0answers
43 views

Access and modify Features

I have some problems for get and set properties in my features. When I try get some property with feature.get('property') It not working. I have to look inside to the object and take the property ...
3
votes
0answers
66 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
623 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 ...
3
votes
0answers
109 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
270 views

Zooming to feature not in center using OpenLayers 3?

inside my webgis application with Ol3 I've to zoom to a single feature. My problem is that I've a panel at the bottom of my screen over the Map div. So the zoomed features often finished half hidden ...
3
votes
0answers
596 views

Static Image Layer Performance Issues - Open Layers 3

I am receiving data points in lat/lon. I need to plot all of these on a static image in OpenLayers 3. I am not using OSM or anything else, my image should be the base layer. I got it working by adding ...
3
votes
0answers
534 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
149 views

OpenLayers 'zoom to extent' issue on swipe tool

I am working with OpenLayers version 3.16 in which I have added few layers and comparing those using swipe tool OL3-ext. Layers are coming from GeoServer. While zooming to extent on selected layers ...
3
votes
0answers
563 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
115 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
347 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
606 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
610 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
442 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
648 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
43 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
101 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
214 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
49 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
0answers
93 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
0answers
4k 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=...
2
votes
0answers
119 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
152 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
53 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
151 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
73 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
167 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
103 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
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
127 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 ...
2
votes
0answers
24 views

Interaction draw in projection

I have a simple interaction on my map, by this interaction user can draw circle in any part of map. But i need to consider a current projection, can i apply projection to interaction? I try to say ...
2
votes
0answers
292 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 ...
2
votes
0answers
106 views

Restrict extent and Zoom in OpenLayers3 upto 1 mile

I need to restrict map to a certain extent plus one mile. How to do that? here is my code map.setView(view); map.getView().fit(bbox, map.getSize()); view = new ol.View({ ...
2
votes
0answers
140 views

Adding non georeferenced image as BaseLayer

I am trying to add non georeferenced image as a Base layer in OpenLayers3 (v.3.8.2). On top of that there is WMS, called from GeoServer, as Overlay. I successfully loaded both layers, but they are not ...
2
votes
0answers
474 views

Draw and modify polygons in openlayers

I want to draw only one polygon, modify it and then save the polygon. I already do the saving. I'm not able to modify the polygon as it snaps. Here is what I need but I'm not able to make it work. ...
2
votes
0answers
227 views

dynamic zoom linked to a drop-down menu

I would like to get a dynamic zoom linked to a drop-down menu. For example I have a list connected to my database with all the regions and I would like that when the user choose a region that a zoom ...
2
votes
0answers
99 views

Display multiple pop-ups when superposition of polygons with Openlayers

I have a map with polygons vector objects. Superpositions can exist between the polygons. That is to say a bigger polygon is sometimes completely above a smaller one. With Openlayers, is it possible ...
2
votes
0answers
300 views

Reproject XYZ tile layer on the fly in Openlayers 3?

I have an Openlayers 3 application which has a default map projection of EPSG:27700 with both base layers and WFS layers using the same system as well as various mapping tools like measuring options. ...
2
votes
0answers
80 views

Accessing cell value of a wms raster served as ol.layer.Image from OpenLayers

Hi I would like to access the value of the raster cell on clicked location (sort of an indentify tool) of a raster displayed in a webapp as ol.layer.Image via mapserver. I have set the .map file of ...
2
votes
0answers
918 views

OpenLayers and Ionic 3 | tileLoadFunction not working

I am building a simple map app with the Ionic 3 framework. I am using OpenLayers 4.0.2 as the map api. It has been going great until I tried implementing a custom tileLoadFunction for the basemap ...
2
votes
0answers
112 views

How to make a proper unification function

Well i make a map with OpenLayers 4 in draw a a brunch of polygons an try to union them if they intersect. i made this code : function unification(){ var parser = new jsts.io.OL3Parser(); ...
2
votes
0answers
498 views

Uncaught TypeError: a.addEventListener is not a function When using React OpenLayers Wrapper

I am trying to create a web app using a Django back end with React for the front end. I am using a React OpenLayers wrapper on the OpenLayers site and keep getting the Type Error. Can someone please ...