Questions tagged [openlayers-3]

OpenLayers 3 is the complete rewrite of the OpenLayers 2.x mapping library, targeting modern features of HTML5 and CSS3. It is not compatible with OpenLayers 2. OpenLayers is completely free and open source, having been released under the 2-clause BSD License.

OpenLayers 3

OpenLayers 3 is a high-performance, feature-packed library for creating interactive maps on the web.

Beginners may wish to consult the following resources:

Usual search keywords are 'OpenLayers' and 'ol'.

Source code can be found on GitHub at https://github.com/openlayers/openlayers.

Tag usage

Use of the tag was encouraged by OpenLayers developers for questions specific to OpenLayers 3, but it no longer is. The tag will probably get more attention.

2413 questions
0
votes
2 answers

openlayers3 : center and zoom extent to KML limits

Basic script to display a kml file on a tiled background with openlayer; I just switched from version 2 to 4.65, how can I zoom to the limits of the kml geometry ("vector" here) ? var wmsSource = new ol.source.TileWMS({ url:…
S.E.
  • 150
  • 10
0
votes
1 answer

Cache OpenLayers3 Tiles server side

I'm developing a website that display a map using OpenLayers3 API. I know that most of requests will refer to a specific location so I'm wondering if it's possible to save server-side the Tiles of that region, in order to reduce calls to…
Daniele
  • 85
  • 2
  • 8
0
votes
1 answer

Add GPX dynamically with openlayers

I am trying to show different routes from gpx files by selecting them from checkboxes, but the vector layer doesn't appear. I used as a guide the examples from OpenLayers webpage: GPXDATA and DragandDrop without results. Main.php
Aplessed
  • 3
  • 2
0
votes
0 answers

OpenLayers 3 circles with a distance-based radius

I am trying to draw a circle on a map using OpenLayers. I would like to be able to define the radius of the circle in miles. Something like this: function generateCircleFeature(lat,lng,radius_in_miles) { //clever stuff goes here …
iwilliams
  • 35
  • 6
0
votes
0 answers

Track the created on and updated on data of features in geoserver layers

In arcgis there is a capability of tracking the created and updated date of features in the layers. Is it possible to handle the same thing from geoserver layers by any settings and / or plugins.
Naveen Kumar H S
  • 1,304
  • 16
  • 30
0
votes
1 answer

OpenLayers add function to add and remove overlay?

I am trying to create a tile source url based on checkbox selection. My project was on googlemaps and now I am moving it to openlayers. I couldn't figure out how to add a function. It breaks my code. The below snippet shows my code. I commented the…
Mapster
  • 88
  • 1
  • 14
0
votes
1 answer

How do I draw a line in Openlayer and draw a point on it?

How do I draw lines on the openlayer and draw points on the line through the miles? I can draw a line on the openlayer, but I don't know how to draw a point online based on the distance from the distance.
JoseYang
  • 1
  • 1
0
votes
2 answers

Javascript + OpenLayers 3: Multiple layers selection

I am trying to create a simple webpage about a WMS map with OpenLayers 3. I load some layers and I want for the user to be able to select one or more layers as visible on the map. My jsfiddle is available here…
lios
  • 218
  • 5
  • 26
0
votes
1 answer

How to load a custom .pbf file in ngx-openlayers

I was able to load maps using the ngx-openlayers with the following code
Miki Maine Amdu
  • 199
  • 1
  • 12
0
votes
1 answer

How to toggle geojson layer visibility in openlayers 3 on click of a button?

I have several geojson layers added via: var layer1 = new ol.layer.Vector({ title: 'Geojson 1', source: new ol.source.Vector({ url: 'geojson1.json', format: new ol.format.GeoJSON() }) }); …
Rolando
  • 58,640
  • 98
  • 266
  • 407
0
votes
2 answers

Get error on GML options

I'm trying to create wfs-t service I have used the ol.format.WFS#writeTransaction method and serialize the WFS-t XML but my jslint always preview error at the GML format options. Is it possible that I am initializing the ol.format.WFS object…
Teguh Santoso
  • 13
  • 1
  • 4
0
votes
0 answers

Update attribute information using WFST in openlayers3

i am developing a web application where i need to update the attribute of a feature coming from geoserver. I tried updating the attribute information using below code. this.update = function(p,f) { var formatWFS = new ol.format.WFS(); …
User123
  • 793
  • 4
  • 10
  • 28
0
votes
1 answer

How to configure the webpack configurations in create-react-app

I have a question or problem. I'm using React v.16 so when I create a project I did with create-react-app that webpack is already preconfigured. And I want work with ol-cesium, and in npmjs I see that I have to: create an alias to the goog…
Javier
  • 1,975
  • 3
  • 24
  • 46
0
votes
1 answer

Cant access method to download Image

I'm trying to call a method to download an image of map, but I dont know how to do it waiting to If only I use this part of code I can download perfectly an image handleGetImage = () => { this.setState({ imageButtonDisabled: true,…
Javier
  • 1,975
  • 3
  • 24
  • 46
0
votes
1 answer

OpenLayers Line String

I have a list of coordinators and I want to display it in the openlayers map but the line did not show in the map. This is my code. May someone guide my on this? for (let i = 0; i < list.length - 1; i++) { const start_point =…
Jim
  • 171
  • 4
  • 14
1 2 3
99
100