Questions tagged as 'openlayers-3'

0
answers

Include a Getfeatureinfo popup in openlayers 3

I want to include a popup that displays the information of the wms layers but I can not get it to work. It seems that all the examples I find work with geojson or maps with tiles, and this is not my case. I do not know how to customize the code...
asked by 24.06.2016 / 16:56
1
answer

OpenLayers Map marker coordinates

Good morning, I'm trying to show a marker on an OpenLayers map, but I can not do it. The error I reviewed is in: var iconFeature = new ol.Feature({ geometry: new ol.geom.Point(ol.proj.transform([13.866291, -90.204114], 'EPSG:4326', 'EPS...
asked by 04.12.2017 / 19:01
1
answer

How to get the change event of a layer in OL3 using ol.control.LayerSwitcher

I'm using Open Layers 3 with the ol.control.LayerSwitcher plugin and I wanted to know how I can get it when I change a layer in the switcher. I was looking for a lot on the internet and I can not find a solution to this. The idea is when the c...
asked by 07.01.2017 / 15:39
1
answer

Popup gpx data Openlayers

I am creating a map with Openlayers 5.3 (it works with versions 3 and 4 as well) that has several layers selected with Layerswitcher and a vector layer of GPX file with information that I want to show by means of a popup, when clicking on waypoi...
asked by 12.12.2018 / 17:17
1
answer

Latitude and Longitude of a Circle in OpenLayers3

Good! I would like to get the Latitude and Longitude of a circle in OpenLayers. var geometry = evt.feature.getGeometry(); var radius = Math.round(geometry.getRadius() * 100) / 100; var center = geometry.getCenter(); var lat = ???? var lon =...
asked by 06.11.2017 / 14:19
1
answer

change ol.style.Circle by Icon javascript

Good I am working in javascript more specifically with the Api of OpenLayers in search of making a map with bus stops which I take from a mysql database. So far I have you bring me the stops according to the company and clicking on the circle sh...
asked by 13.04.2018 / 14:18