openlayers-3 Questions

12

Solved

I managed to add interactivity to a feature layer added from a remote GeoJSON resource. When I click on a feature I get its ID, fire an AJAX request and display some relevant info about the feature...
Stylist asked 24/9, 2014 at 16:31

5

Solved

Using OpenLayers 3, how can I determine the distance between two points in the Spherical Mercator (SRID: 3857) projection? I know that distanceTo was used in OpenLayers 2 point1.distanceTo(point2...
Incandescence asked 27/9, 2014 at 5:4

3

Solved

How can I use a SVG image as a Layer (so not as a map marker) with OpenLayers-3 I was unable to get any output of my SVG image when using any of the ol.source.Vector and ol.format.Feature instance...
Hounding asked 22/12, 2015 at 12:55

3

Solved

I'm sing OpenLayers 3 to display a map. I want to center the map using latLon coordinates. I'm using the quickstart code to begin with. Using this code, I cannot change the center of the map. I thi...
Nauseous asked 7/1, 2015 at 13:39

3

I am working on an openlayers 3 project, developed using typescript, hence: let ol = require("openlayers"); I would like to use the transform extension plugin, which is not published on NPM (htt...
Kastroprauxel asked 2/7, 2017 at 17:35

1

I am using OpenLayers 3 to display indoor maps in an Angular/Ionic mobile app. The maps are static images that I am placing on top of the OpenLayers map. I am creating the map and adding the imag...
Sales asked 20/5, 2016 at 0:45

1

So I'm trying to add a select interaction into my maps when I hover over any feature it's clearly highlighted. import Select from 'ol/interaction/select'; import pointerMove from 'ol/events/condi...
Smitty asked 5/3, 2019 at 16:28

4

I have a big map application, so to be representative I will have to provide just a chunk of code. So, this is how I try to remove all layers from a map: map.getLayers().forEach(function (layer) {...
Furcula asked 29/11, 2016 at 9:53

4

Solved

I need to handle a zoom event in Open Layers 3. The following is my code: map_object = new ol.Map({ target: 'map', controls: controls_list, interactions: interactions_list, overlays: [overlay], l...
Predesignate asked 4/11, 2014 at 11:53

4

Solved

I'm implementing map exporting functionality using OpenLayers 3. But there is one problem: one cannot determine whether the map view is completely loaded or a few tiles is missing yet. It seems t...
Felten asked 16/12, 2015 at 11:58

2

I have a project in PHP and I'm using openlayers for maps, but I need to locate bookmarks by passing a list of addresses, it has to be a free geocoder since there are many addresses. Thank you very...
Eisenhower asked 20/12, 2017 at 16:53

3

Is there a way to have a selectInteraction in OpenLayers 3 that only allows one feature to be selected at a time?
Bethannbethanne asked 1/5, 2015 at 15:3

3

Solved

OpenLayers 2 had a very useful map.zoomToExtent(extent) feature. Is there something similar in OpenLayers 3? I can get the extent of interest with source.getExtent(), but I can't figure out how to ...
Umbrageous asked 15/5, 2014 at 15:14

2

Solved

My openlayers 3 application draws several LineString features on the map (from a few dozen up to 2000-3000). When setting different colors for each segment of the LineStrings, I meet a huge perfo...
Wil asked 29/10, 2015 at 14:15

1

Solved

I am trying to get address(City, Post code,Street address) with longitude and latitude but i don`t know how. I am using Open layers and when i click on part of map a get longitude and latitude of t...
Yasmin asked 15/6, 2018 at 20:15

2

I'm trying to get the "id" of the layer for a selected feature and have tried maybe 3 or 4 methods for achieving this but have yet to achieve it. I add my features like this... angular.forEach(r...
Babbie asked 22/6, 2016 at 14:54

2

Solved

Me again. So, yesterday I faced a bit of a problem with zooming to selected features and I'm hoping that some of you can push me in right direction.Here it goes... I'm trying to implement autocompl...
Eleazar asked 10/4, 2018 at 6:37

6

In openlayers-2, we can add google basemaps(satellite,physical,hybrid,etc.). I need to add google basemaps in openlayer-3. How can I add google basemaps??? CODE in openlayers-3 map = new ol.Map({...
Integrated asked 26/2, 2015 at 9:6

3

In the OL3 examples I can drag objects and drop on the map, but I want to move/resize/rotate things that are already on the map like ol.geom.Point and other ol.geom objects. What is the OL3 way do ...
Frei asked 7/7, 2014 at 7:27

3

Solved

I am trying to upgrade my system from Openlayers 2 to Openlayers 3 and I have having one particular issue that I cannot seem to figure out. My application has a grid and a map and when a user clic...
Wesleywesleyan asked 17/10, 2014 at 10:2

1

Hellow, I'm using react-native to create a User Interface for my application. I'm using Genymotion for testing my code on virtual Android. I wanna use Openlayers javascript library in my web map ap...
Clannish asked 30/7, 2017 at 6:48

2

Solved

I was add vector layer with wkt source to map with below code: var SelectVector = null; for (var i = 0; i < wktarray.length; i++) { var wkt = wktarray[i]; var format = new ol.format.WKT(); ...
Majuscule asked 17/10, 2017 at 8:11

3

I have rectangle WMS of small area and want to restrict panning outside WMS extends, so there aren't white or black area outside the map visible at all. Adding extent to View does not work for me ...
Lyndsaylyndsey asked 29/11, 2014 at 7:43

1

Solved

I am needing to transform GeoJSON vector data from EPSG:4326 to EPSG:3857... I have a map... var olMapDiv = document.getElementById('olmap'); control.map = new ol.Map({ target: olMapDiv, rende...
Virtuosic asked 6/7, 2017 at 19:33

3

Solved

I have a Javascript code which use openLayer3. I need to implement this code in a angular2 project, in Typescript. Someone knows how use openlayer with angular2 / Typescript please ? Thanks a lot...
Adamic asked 23/2, 2016 at 16:11

© 2022 - 2024 — McMap. All rights reserved.