Questions tagged [openlayers]

OpenLayers is an open source Javascript web mapping library for creating web map applications.

OpenLayers is a JavaScript library which implements an API for developing dynamic map widgets on the web. The library provides tools for presenting and editing geographic information using pure JavaScript with no server-side dependencies.

OpenLayers supports several different access methods for geographic data, including the OpenGIS Web Mapping Service (WMS) and Web Feature Service (WFS) protocols from the Open Geospatial Consortium. Other supported geographic data sources include OpenStreetMap, Bing Maps, and ArcGIS Server. See the OpenLayers live examples page or the documentation for more comprehensive details.

OpenLayers is a project of the Open Source Geospatial Foundation (OSGeo) and is released under a BSD-style license (also known as the BSD-2-clause).

Books

OpenLayers Cookbook

Tag Usage

When asking a question with the tag, please mention the OpenLayers version you are using - especially for coding related questions.

5064 questions
1
vote
1 answer

OpenLayers XYZ example with map proxy script

I always wondered if it would be possible to load a map from a public source with a script and display it using OpenLayers. It would also allow to create a map tile cache to allow faster load times. So my question is how to load maps in OpenLayers…
Fernando
  • 1,477
  • 2
  • 14
  • 33
1
vote
1 answer

OpenLayers can't initalize map using Component class and webpack

I'm trying to rebuild this tutorial. Instead of using Leaflet (which is working, but for different reasons, I don't want to use Leaflet), I want to rebuild it using Openlayers, but I can't initialize the map using OL. I get this error message in…
didi_o
  • 23
  • 3
1
vote
1 answer

Can you extend open layers layer class?

I am trying to extend OpenLayers class with es6 syntax in typescript. I have run a few tests in jest to verify that my new class is a VectorLayer instance. I have been able to use methods like setSource and they appear to work in tests. However,…
1
vote
1 answer

Angular5, Openlayers5 make your popup(overlay) draggable

I am trying to make my popup draggable. I have seen some solutions with older openlayers versions but these wont work with the new version. Map: this.map = new OlMap({ target: 'map', layers: [ new OlTileLayer({ name: 'maplayer', …
user3356007
  • 393
  • 1
  • 6
  • 20
1
vote
0 answers

Posting OpenLayers VectorTiles on GeoServer

I am slowly losing my head in this problem. Context: I'm fairly new to webserver, javascript etc. so my knowledge is very limited. It seems very simple: I want to draw Features on a Website using OpenLayers and safe them for later use on a…
1
vote
0 answers

Want to Display POI info in Info Window on OSM Map right click.?

I want to Display POI information InfoWindow in OSM Map. I used Open Layer ol.js. I declared Poi info array. Want to get Poi infoWindow as well as feature name to rectify which feature user click event is fired and on which dataindex of i user click…
MumbaiKandivali
  • 121
  • 1
  • 1
  • 9
1
vote
1 answer

How can I use an Openlayer 'overlay' inside React?

I created a simple card with react and I want to display an overlay. But the overlay is not showing and I have no errors in the console. I declare the map in the constructor // Declaration of the map this.olmap = new Map({ target: null, …
sandrine
  • 43
  • 7
1
vote
1 answer

Layer imported from geoserver is not displayed using OpenLayers

I'm importing layer of deepwatertable (coordinate system 32632) from geoserver to display it using OpenLayers but i cannot find it. Here is the written code: var urlgeoserver="http://localhost:8082/geoserver/BV_chiba/wms" var…
1
vote
0 answers

Singleton instance of component in vuejs

I have a basic openlayers map in a vue component: