openlayers-3 Questions

2

the method getRadius() of class ol.geom.Circle returns the radius of a circle ; how can I convert this value into meters ? I draw a circle on a map using a particular projection (e.g Spherical Mer...
Krucik asked 4/8, 2015 at 9:46

3

Solved

I am using the following code to add a feature to a vector layer in OpenLayers 3 (OL3): marker = new ol.Feature({ geometry: new ol.geom.Point([longitude, latitude]), name: "Location Marker" }); ...
Naylor asked 15/10, 2014 at 20:8

2

Solved

OpenLayers3 API has a map.on("moveend") , however I cannot find a movestart. Any one know how I can achieve this? Is there a equivalent event? OpenLayers 2 had a movestart event on map. I am look...
Gilbertogilbertson asked 8/8, 2015 at 16:48

1

Solved

I wanted to make a map using openlayers but center it a unique way. For example I have a z/x/y coordinate of 12/2045/-1362, how do I convert it to longitude/latitude? It's quite the polar opposite ...
Decent asked 17/8, 2015 at 9:11

1

Solved

How does one get a specific ol.control or ol.interaction from ol.Map? I have several dynamically added maps on a single page and I want to be able to access the ol.interaction.Select.
Whenever asked 12/8, 2015 at 16:21

0

I am trying to add new features to a vector layer. I do it with this code: layer.getSource().addFeatures(features); Where layer is an instance of ol.vector.Layer and features is an array of ol....
Durrett asked 7/8, 2015 at 13:42

5

Solved

I'm showing the mouse position in OpenLayers 3 with the following control var mousePositionControl = new ol.control.MousePosition({ coordinateFormat: ol.coordinate.createStringXY(2), projection:...
Megalo asked 12/11, 2014 at 6:15

1

I need to implement Undo / Redo functionality using OpenLayers 3 vector editing (just like demonstrated in http://dev.openlayers.org/examples/modify-feature.html for OpenLayers 2). To keep track o...
Defazio asked 12/11, 2014 at 3:17

2

Solved

I created a standalone map to test this out for myself. I took a heap snapshot, using Chrome Developer Tools, of the page upon loading it and found it was using 882MB of memory. I'm looking to plot...
Irritative asked 16/7, 2015 at 17:1

2

Solved

I am struggling with building OL3 Vector layer BBOX strategy loading. So far I can easily load Geojson file with valid json syntax, however this is one time strategy. My another approach was to use...
Tracheitis asked 10/11, 2014 at 12:58

1

Solved

I'm using OpenLayers v3.6 (this is important, because most of solutions that I found and would potentialy work are for OpenLayers 2). I have a table and when I select a row in that table, I would ...
Greenstein asked 9/7, 2015 at 13:57

5

I have an OpenLayers 3 map with a base layer and a vector layer. this.topoLayer = new ol.layer.Vector({ source: new ol.source.Vector(), style: style }); var baseLayer = new ol.layer.Tile({ so...
Multifarious asked 28/12, 2013 at 16:20

2

Solved

How do I force ol3 to render every single point in a geometry? I'm having an issue with openlayers 3, where although I'm plotting a line string with 3000 points over a distance of maybe 100m, only...
Seabrooke asked 5/6, 2015 at 17:7

1

Solved

i am trying to set the fill colour of seperate features of a vector layer. using the code below, i thought i would be able to iterate through the features and set their fill style individually, but...
Hypoderma asked 19/6, 2015 at 10:49

1

Solved

i'm new to OpenLayers and i am looking for some help drawing lines on a map, i've been trying various things from various different posts about drawing LineStrings but i can't get it to work! I jus...
Santos asked 17/6, 2015 at 9:54

3

Solved

I am trying to use resolution passed into the StyleFunction to work out the size of my image Icons. Using tests, at a zoom where the scale line is 100m the resolution reported to the styling functi...
Ascot asked 21/5, 2015 at 7:5

1

Solved

I am migrating from OpenLayers 3.2.0 to 3.5.0 and am having trouble loading my GeoJSON data into my vector layer. I have it working, but I'm transforming the geometry of the features from my GeoJSO...
Annelid asked 28/5, 2015 at 15:2

2

How can I catch the tiles loaded event in OpenLayers 3? In OpenLayers 2 this could be done by catching the "loadend" event from the baselayer of the map: map.baseLayer.events.register('loadend' , ...
Gigigigli asked 13/10, 2014 at 19:18

3

Solved

I am trying to serve up a map in Internet Explorer that works fine in Firefox or Chrome. While debugging I noticed that something was missing when I tried to bring up the map in IE. This is the htm...
Marikomaril asked 29/4, 2015 at 20:52

1

Solved

I'm using openlayers 3 to create a map with vector features on top. So far, so good. I have several vector layers, grouped in a variable called projecten. var projecten = new ol.layer.Group({ ...
Evie asked 8/5, 2015 at 10:0

1

Solved

I'm trying to draw an icon representing a entity on an OpenLayers map that includes a "speed leader", which is a small line segment that originates at the icon and draws outward in the direction th...
Jointless asked 1/5, 2015 at 19:1

1

Solved

I want to modify style of the method select . I'm able to change the style of this method but i'm not able to duplicate the white border of blue stroke. Someone is able to style vector with a stro...
Boltzmann asked 30/4, 2015 at 5:2

1

Solved

Is there any (convenient) way to show multiple icons/images for a single vector (point) feature in ol3? Say, for example that I'd like to show different properties of a set of POIs using different ...
Peaked asked 14/4, 2015 at 0:32

1

Solved

I've tried to resolve the next error but without success. I have the following jQuery and HTML5 code: <script language="javascript" type="text/javascript"> function doExportMap() { map....
Deciare asked 18/3, 2015 at 22:6

1

Solved

This is my code: var iconFeature = new ol.Feature({ geometry: new ol.geom.Point(ol.proj.transform([-95.3698,29.7604], 'EPSG:4326' , 'EPSG:3857')), name: 'Null Island', }); var iconStyle = new o...
Cordate asked 5/3, 2015 at 21:25

© 2022 - 2024 — McMap. All rights reserved.