Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 106393

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

2 votes
1 answer
438 views

Understanding OpenLayers? [closed]

I realized a project with OpenLayers 3 some time ago, but now I do not understand anything anymore. I should install any packages? npm install ol. But even that does not work. …
Suka's user avatar
  • 81
2 votes
1 answer
2k views

ol.control.MousePosition EPSG:4326 over 180/-180 longitude (OL4)

i will use a OpenLayers example in EPSG:4326, but the value of longitude is not wrapping on 180/-180 longitude. How can i fix it? … The OpenLayers Example: https://openlayers.org/en/latest/examples/mouse-position.html The OL example in a JSFiddle: https://jsfiddle.net/eqjjp4u8/ …
Suka's user avatar
  • 81
1 vote
1 answer
849 views

Calculate distance from GPX in OpenLayers

In OpenLayers is an array with all coordinates + the elevation. I would like to extend this array by the distance. …
Suka's user avatar
  • 81
1 vote
2 answers
2k views

Remove/Delete a layer or layergroup with mouse click

OpenLayers does not seem to have such a simple solution. …
Suka's user avatar
  • 81
1 vote
2 answers
2k views

Difference between ol.proj.getPointResolution() and ol.sphere.getDistance()

Is there anyone who can explain the difference between ol.proj.getPointResolution() and ol.sphere.getDistance()? I have tested it, and ol.sphere.getDistance() is a little bit shorter than ol.proj.get …
Suka's user avatar
  • 81
0 votes
1 answer
3k views

OpenLayers: GeoJSON Vector-Layer refresh / redraw every second

I do not get to move the Vector Layer in my OpenLayers script. The layer should be renewed every second. …
Suka's user avatar
  • 81
0 votes
1 answer
1k views

Creating markers within a loop

Using OpenLayers, I want to display multiple markers over an OSM map by creating them from an array within a while loop. …
Suka's user avatar
  • 81
0 votes

Remove/Delete a layer or layergroup with mouse click

I have found it myself. There is a getArray(). if (map.getLayers().getArray().length > 1) { map.getLayers().getArray().pop(); }
Suka's user avatar
  • 81
0 votes
0 answers
860 views

Transform coordinates length to pixel length?

I need this function for cropping and scaling map images to be inserted as layers in an OpenLayers Map. The map images are already adapted to an OSM map and therefore have an "extent" BBOX. …
Suka's user avatar
  • 81
0 votes
0 answers
182 views

Use of ratio in ImageWMS in OpenLayers

I am trying to understand the setting of ratio in ol.source.ImageWMS but I am not succeeding. I already understand the ratio: 1, as there is not much to understand there. ratio: 1 = browser viewbox. I …
Suka's user avatar
  • 81
-2 votes
1 answer
649 views

Openlayers 5 click vector feature style circle popup [SOLUTION!] [closed]

Please include with: https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js …
Suka's user avatar
  • 81