Questions tagged [openlayers-5]

v5 specific questions on the OpenLayers mapping library

OpenLayers v5 is the latest release of the OpenLayers mapping library.

From https://openlayers.org/:

OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles, vector data and markers loaded from any source. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD).

v5 reworked the library as a set of ES Modules, and improved compatibility with mainstream module bundlers.

317 questions
0
votes
1 answer

popup with multiple points features

i'm having some troubles with open layer 5 looking/coping this example https://openlayers.org/en/latest/examples/icon.html?q=marker having more than one "clickable icon" if i click and open the popup is ok, then if i click the map (not icons) the…
giacomo
  • 51
  • 1
  • 10
0
votes
1 answer

OpenLayers Feature is not getting rendered

I'm starting to play a bit with OpenLayers5 but I cannot even draw a simple point on the map. I followed the tutorials and had a grasp at some of the examples but they always try to achieve more complex things that what I wanted to accomplish: Draw…
JorgeGRC
  • 1,032
  • 2
  • 18
  • 37
0
votes
1 answer

Openlayers: shared views side by side........how to properly unbind them?

I have used an adjusted version of the shared views example from openlayers.org: https://openlayers.org/en/latest/examples/side-by-side.html var layer = new TileLayer({ source: new OSM() }); window['view1'] = new ol.View({ center: [0, 0], …
user1939338
  • 117
  • 9
0
votes
1 answer

OL Mapview: provided boundaries are not used........why?

When I supply the leftbottom and righttop coordinates for mapview these are not exactly used. The resulting difference is pretty big. What am I missing?! Bounds = [-0.6688232421875, 49.78322566351028, 11.6688232421875,…
user1939338
  • 117
  • 9
0
votes
1 answer

Vector tiles:GetTile WMTS ol.format.MVT() with Openalyer v5.3.0 From Geoserver

I have layers on Geoserver(2.13.0) that configure with MSSQL DataStore.I install vector tile extension for the same version. After installed, while previewing with TileLayers pbf by selection from drop down result is…
cj devin
  • 1,045
  • 3
  • 13
  • 48
0
votes
1 answer

Select interaction stopDown

I'm looking for a way to have the 'stopDown' feature of PointerInteraction/DrawInteraction work for Select interaction. I have an attached click listener on the map, which should not fire when the select interaction is added to the map. I've tried…
Stsje
  • 31
  • 1
  • 3
0
votes
2 answers

Openlayers map tiles are not initially loaded in single page app

I have a single page application built with Express (4.16.3), Openlayers (5.3) and Pug (2.0.3 – formerly known as Jade) templating engine. The map container is loaded and has child elements with ol- classes as well as the zoom controls in the…
Groschenroman
  • 77
  • 1
  • 1
  • 8
0
votes
1 answer

How to show count in heatmap instead of magnitude?

I am trying to implement an openlayers heatmap example below: https://openlayers.org/en/latest/examples/heatmap-earthquakes.html Instead of magnitude is it possible to show count (how many points are in the same area)? Edited: pointer count and show…
user10496245
  • 217
  • 3
  • 17
0
votes
1 answer

openlayers 5.2.0. Markers with text

I have this piece of code in my template, expecting that the marker will appear with the text "1SSMMMS", but I don't see any text at all in the market var iconStyle = new ol.style.Style({ image: new ol.style.Icon(/** @type…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
0
votes
1 answer

OpenLayers KML Incremental Updates

I am trying to determine if it is feasible for OpenLayers v5 to handle incremental updates to KML files. The KML files I am working with are large but are dynamic and receive updates every so often. Instead of refreshing the entire KML file it…
user1200387
  • 625
  • 2
  • 13
  • 22
0
votes
0 answers

OpenLayers 5: How to import the needed Files in html/js?

I'm trying to get the basic example of OpenLEayers 5 to work. This is my index.html: Simple Map
Corben
  • 23
  • 3
0
votes
1 answer

Openlayer with angular6 : what will the type script way

The recent openlayer is purely developed in typescript. What will be the architectural approach when developing an angular application together with ol5?
swaraj
  • 109
  • 2
  • 13
0
votes
1 answer

Openlayers 5 How to watch for view.center changes

I'm currently working on a project to use openlayers 5's observable to observe some items in the map and respond accordingly. http://openlayers.org/en/latest/apidoc/module-ol_Observable-Observable.html What I want to do is every time the view's…
twoLeftFeet
  • 693
  • 1
  • 5
  • 25
0
votes
1 answer

OL5 VectorTileLayer: Y coordinate of tile

I try to use OL5 vector tiles with global tile grid. import 'ol/ol.css' import { Map, View } from 'ol' import MVT from 'ol/format/MVT' import TileGrid from 'ol/tilegrid/TileGrid' import VectorTileLayer from 'ol/layer/VectorTile' import…
MapUser
  • 351
  • 1
  • 3
  • 15
0
votes
1 answer

how to get which lineString is get clicked on click on any parallel line generated from Style geometry in Openlayer

I have generated parallel lineString on map by using Style geometry options for Single Feature Object in openlayer v5.2 with different-different width stroke after modified the found reference link on http://jsfiddle.net/CPRam/egn1kmc8/. While using…
cj devin
  • 1,045
  • 3
  • 13
  • 48