OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.

learn more… | top users | synonyms

1
vote
0answers
16 views

openlayers drag control returns wrong XY

I am trying to use a Drag Control in a webgis. My problem begins when I finish the 'move' of a point. That is, originally the point has an XY like -8.308567019533697 and 41.376871762432685, displaying ...
2
votes
0answers
9 views

Using OpenLayers' Refresh strategy for GeoJSON

I am trying to use the Refresh Strategy reading a GeoJSON file in OpenLayers, however it doesn't work (but it works perfectly using for instance .Fixed() strategy), here is my code: var ...
0
votes
1answer
12 views

Geoserver security and application security separation

I am using geoserver that publises WMS, WFS services to clients. I am using geoserver services in an OpenLayers application. My application will requiere username and password authentication. 1 - ...
0
votes
0answers
8 views

Calculating z coordinate for longitude, latitude Google Map [duplicate]

I have a point (lon, lat) values. Is there any service to calculate Z coordinate of this point. Google service, OpenLayers service or others.
1
vote
0answers
11 views

Help embedding Openlayers map in Eclipse BIRT report

i have this code, it displays the zoom buttons only but it doesnt display my map. what could be the problem? <html> <head> <script ...
2
votes
0answers
41 views

Comparing mapping APIs

I am planning to write a thesis about mapping APIs and compare three of them (Google Maps API, Leaflet and OpenLayers) or four, if you consider OL2 and OL3 as different APIs. I am planning to make 3 ...
2
votes
1answer
52 views

Modifying a WMS feature in POSTGIS with Openlayers

I have a WMS layer that i'm using to display complex features to the users. It was really the main reason i chose GeoServer, because rendering all the vectors, made it painfully slow. Like GeoServer ...
1
vote
0answers
22 views

OpenLayers 3 polygon and point features intersection

I am trying to migrate from old OpenLayers to OL3 and have some problems with this part f my code. This is old OL. "maakonnad" on GeoJSON polygon layer and "wfs" on WFS points. ...
1
vote
0answers
14 views

How to disable Google map zooming animation effect?

I am using Openlayers mapping library in my application. I have integrated Google map V3 & added other several WMS overlays, Vector layers etc. Every thing working fine. But I am facing big ...
2
votes
0answers
21 views

Correct syntax for retrieving features from GML format in OpenLayers

Yesterday I made with qgis the shapefiles of my town and now I wanted to add them in a web application I'm making with OpenLayers. The problem is that, while it loads them perfectly with the wms ...
1
vote
0answers
16 views

PointStacker - Random locations at different zoom level

I'm applying PointStacker transformation on one of my layers using Geoserver 2.5.2 and OpenLayers 2. I know, that I have 7 datapoints located on the exact same location. However, when I change the ...
0
votes
1answer
17 views

Geowebcache tiles hiding vector layers

I'm using Openlayer 2.13, Geoserver 2.3.5 for Development. I have a Geowebcache layer as base layer And one vector layer for showing route(Please check the attached image). If I drag or zoom in to ...
1
vote
1answer
27 views

Building web application to get PostGIS query from user and view result map using GeoServer via OpenLayers?

I'm a newbie in web-map application area. I just found the small application in this tutorial interesting I am a bit confused, because when i publish a map using geoserver and openlayer, I have to ...
1
vote
0answers
25 views

Routing and OpenLayers: How would you connect a point to another through a 'road' node? [duplicate]

So my question is in a routing application,probably using osm as base layer, how do I get a line-string that goes through the road and not directly from one point to another? Is there any ...
1
vote
1answer
26 views

Get geometry from OpenLayers.Control.WMSGetFeatureInfo JSON

I need to store the geometry of a certain feature with OpenLayers.Control.WMSGetFeatureInfo and i'm using these parameters to get it in json format output:'features', infoFormat:'application/json', ...
1
vote
1answer
34 views

Bubbles getting shifted for WMS getMap if POST is used instead of GET, using gutter in both cases

Bubble positions are wrong in case of WMS POST request. For example, a bubble is getting shifted from 31.82, -96.84(lat-long) to 31.77, -96.77. I am using openlayers 2.13.1. The layer creation Code ...
0
votes
1answer
22 views

SLD specification for a vertical line on every line turning point

You can define a vertical line in SLD like this: <LineSymbolizer> <Stroke> <GraphicStroke> <Graphic> <Mark> ...
0
votes
0answers
5 views

how to use the overview control of openlayers in other platform like skyline or others?

As the title said,is there a possible way to use the overview control of openlayers in other platform like skyline or citymaker or other 3Dplatform? What i need now is that i want to make an overview ...
0
votes
2answers
38 views

How to remove roads from Google satellite hybrid map in OpenLayers?

I am trying to display Google satellite map in Openlayers. So, I added Google Satellite Hybrid map. My problem is, I need to display labels(like POI, place name etc) but don't need any roads & its ...
0
votes
1answer
20 views

Openlayers selected feature unselecting on map zoom

I have createc a select control and a StyleMap that includes default marker and select marker. var mystyle = new OpenLayers.StyleMap({ "default": new OpenLayers.Style("null", { ...
1
vote
0answers
25 views

OpenLayers, symbol every 100 pixel on line symbolizer

First: the above banner links this to How to use a sld file with Openlayers using OSM data? , but look update2. I would like to add rail-road hatching to my OpenLayers map with a Symbolizer. Example ...
0
votes
0answers
9 views

Change the Openlayer drawing operation for different ovelay

I am using the DrawFeature control in OpenLayer 2.13.1: polygon = new ol.Control.DrawFeature(map.baseOverlayLayer, ol.Handler.Polygon); polygon = new ol.Control.DrawFeature(map.baseOverlayLayer, ...
0
votes
0answers
11 views

Clustering on Geoserver layer appearing out of the map

We are using Geoserver and openlayers to display maps. Geosever layer provides list of sites, since there were many we did a clsutering using Styles. But the problem is when we zoom out completely ...
2
votes
3answers
63 views
+50

Openlayers Vector Rendering

I've just added a couple of more WFS backed vector layers to a map and the performance has dropped. Whilst debugging this I've noticed that openlayers is considering every feature in the visible ...
1
vote
0answers
22 views

Triggering events when loading and finished loading from WMS

I'm currently creating a webgis application using OpenLayers 3.0.0, and I'm trying to display a loading gizmo when loading layers from a WMS. I've found examples for OL 2.1.0 that registers ...
0
votes
0answers
12 views

openlayers2 customize layerswitcher

In a map, i added control by defaut : var map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", controls:[ new OpenLayers.Control.LayerSwitcher({ ...
1
vote
0answers
22 views

LayerSwitcher() not working with Group Layers in Geoserver

I created a layer group. then previewed the layer using the GeoServer Layer Previewer and it all worked nicely.But Layer switcher is not working properly.layer switcher doesn't show any layers Here is ...
0
votes
0answers
18 views

OpenLayers vertices disappear (lose style?) when programmatically unselected

boundaryStyleMap: ( -> styleMap = new OpenLayers.StyleMap 'default': @get('activeStyle') 'select': @get('editStyle') 'temporary': @get('editStyle') 'vertex': ...
1
vote
0answers
17 views

How does TimeSlider Control work in OpenLayers 2?

I would like to use the TimeSlider control of Openlayers in version 2 for WMS-Time, but there is no documentation or examples. Could someone help me understand how this control works, I would ...
2
votes
1answer
38 views

Send query to ArcGIS REST from OpenLayers app

I am using OpenLayers application and sending WMS query to my geoserver. My polygon is sending to server and gets intersected features. var feature = Mypolygon; var filter = new ...
3
votes
2answers
61 views

KML, OpenLayers: attribute imported as string rather than number

I apologize for what is, I'm sure, a very village-idiot question, but I think my question is simply too dumb for the answers I've found on this subject. I've used QGIS to save a shapefile (.shp) file ...
1
vote
2answers
65 views

How to validate OpenLayers area calculation using PostGIS?

I am working on a GIS API that work on top of OpenLayers. I have a feature that calculates the area of a drawn polygon. I have tested it on the browser and the areas I got, appear to be correct. For ...
0
votes
0answers
12 views

Using the OpenLayers.Control.LayerSwitcher

I'm using Geoserver and Open Layers. I'm trying to serve up a polygons (counties) and lines (roads). I can bring both of these elements in together fine. I'm trying to implement the LayerSwitcher, ...
1
vote
0answers
14 views

How to change color of points dynamically from a geoJson in openlayers

I am new in Openlayers and what I am trying to do is to dynamical give a color to some points read by a GeoJSON file. I am taking inspiration by this post How can I add an infowindow to an ...
1
vote
0answers
21 views

Adding GeoRSS feed as point layer using OpenLayers?

There may be a simple answer, but I have been looking on the internet for answers and trying different things. I want to display this RSS feed as a point layer in OpenLayers 2.11. Can anyone please ...
1
vote
1answer
28 views

Adding vector layer over WMS using OpenLayers?

I am trying to add vector layer to my map from a GeoJSON file stored in the same directory as my maps index.html. However It wont work. Is there something wrong with my syntax? My code: ...
0
votes
0answers
15 views

How to Change Attribution Parameter of WMS Layer Dynamically in Openlayers

This might be a noob question. I have a wms layer in OpenLayers 2.13.1 with attribution: "some_text" set when it's added. This is working fine, the attribution shows up fine in the map div. My ...
1
vote
1answer
39 views

In OpenLayers 3, how do I draw an extent as a LinearRect?

In OpenLayers 2, this was an easy feat. I was able to simply instantiate a LinearRect given the coordinates of my BoundingBox, and then add the LinearRect as a feature to a vector layer I had added to ...
1
vote
0answers
23 views

Save Feature is not working for Line feature and Polygon Feature

I am using following code to save feature but that is not working for Line feature and Polygon feature to save new feature on the relevant layer type. But the same code is working on Point feature ( ...
1
vote
0answers
17 views

Zoom to a vector feature in a vector layer

I am using OpenLayers+GeoServer and I have a vector layer in a map with some features I would like to make a zoom and show the map centered in one of these features that I can get by ID. How can I do ...
0
votes
0answers
9 views

Can we read and write WMC in Openlayers 3?

I am experiencing some problems to parse WMC files with OpenLayers2 and I am thinking of moving to OpenLayers 3 for other reasons also: Can we parse WMC with OpenLayers 3 ? Is there any alternative ...
1
vote
0answers
20 views

Openlayers - Maximum number of layers in LayerSwitcher

I am working on a thematic mapping platform showing data at local administrative levels. I have many layers, so I run into problems (see screenshot: http://gisintersect.com/many_layers.png). Is there ...
0
votes
1answer
16 views

Can't save map with different projection in QGIS

I'm using QGIS 2.4 and am opening a shapefile I downloaded (specifically from: http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_coastline.zip). What I ...
2
votes
4answers
88 views

Sites that demo freely available Basemaps

I've seen such sites in the past. I remember seeing one put together by Wm Lerer at a conference a couple years ago. What I'm looking for is a map that demonstrates all (well, at least a lot) of the ...
0
votes
0answers
8 views

openlayer wfs protocall reset on map zoom

By considering wfs-example example. I have added one layer on map with BBOX and savestrtegy and add controls(add,delete,modify and save). wfs = new OpenLayers.Layer.Vector("Editable Features", { ...
0
votes
0answers
14 views

How can I zoom to featureset geometry item

I send GetFeatureInfo request to server with ajax and get the featureset data. I want to zoom a selected feature. Object {type: "Feature", id: "mydata.39025", geometry: Object, geometry_name: "geom", ...
0
votes
0answers
17 views

Save polygon feature type is not working

I am using following code to save feature. But the following code is not working for Polygon Handler but when I changed it as Path or Point that is working fine drawline= new ...
2
votes
1answer
58 views

Dynamically change location marker based on user's input

I have the following code for displaying OSM with a predefined feature. I am using OpenLayers3: var wmsLayer = new ol.layer.Tile({ source: new ol.source.OSM() }); var ...
2
votes
0answers
15 views

Using MapFish to Print vector with filter based style?

Is it possible to define an OpenLayers WFS style, which is based on filters, to MapFishPrint request?
2
votes
1answer
25 views

Zoom to spatial cordinate in openlayer load

I am working on a project that uses openlayer to show shapefiles from the Geoserver and then show them on google map. The only problem is when the page loads, I want to go to the spatial cordinate and ...