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

learn more… | top users | synonyms

0
votes
0answers
66 views

Print OpenLayers map with osm as background and all the vectors

I looking for an answer for a while, and i could not find a working solution. I am trying to exeport the OpenLayers map to some file - image or pdf, and i need all the background, include OSM and all ...
1
vote
0answers
81 views

How to drag a feature in Open Layers 3

I'm trying to replicate something that was fairly easy in Open Layers 2 in Open Layers 3, which is: dragging an existing feature to a new location on the map. In Open Layers 2 I just added a ...
0
votes
0answers
18 views

MapQuery (jQuery + Openlayers 2) unbind function

I have small gis app build on MapQuery, but development of this libary was stopped 2 years ago. MapQuery have bind function but do not have unbind one. bind: function(types, data, fn) { var ...
1
vote
1answer
59 views

Openlayers - ModifyFeature - How to label vertices with a progressive number

Apologize in advance as I am quite new in openlayer and javascript. I have a control ModifyFeature on a path vector layer. I would like the vertices to be rendered with a stylemap label showing ...
1
vote
1answer
118 views

Function to add layer with button click

I'm working with openlayers and geoserver to create a map and overlay layers. I need to add a layer when a button is clicked, but what I get is that the layer is added ( i can see it through the layer ...
1
vote
1answer
253 views

openlayers - export map to canvas problem

I am trying to make a export control to export the map as image file. I found this example: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html so i added the ...
3
votes
1answer
104 views

Can OpenLayers.Layer.OSM (the OSM tile servers) be used in production environment?

open layers has an openstreetmap layer built in : OpenLayers.Layer.OSM (are the tiles they use from openstreetmap servers or somewhere else?) can it be used in a production environment in terms of: ...
1
vote
1answer
41 views

Automatically refresh an ArcGIS93Rest layer in OpenLayers

I finally succeeded to import a gtfs-realtime feed into ArcGIS Server (used gtfsrdb.py and the created a script to automatically, every 30 seconds, to update the geometry of a table with the points). ...
1
vote
1answer
211 views

How to open a shapefile using Python in QGIS?

I have tried to open my shape files with the help of a tutorial (http://spatialgalaxy.net/2012/01/27/qgis-running-scripts-in-the-python-console/) but unfortunately I couldn't open my shapefiles for my ...
0
votes
2answers
140 views

How can I add attributes contained in JSON data to an OpenLayers popup?

I am working on a website using jQuery, Javascript, and OpenLayers. I am adding markers to an OpenLayers Vector layer using the following code: var pointLayer = new OpenLayers.Layer.Vector("POI ...
0
votes
0answers
9 views

Open Layer Plugin Images Informations

I'd like to know how to find informations about Open Layer Plugin Images. I need to know the date and resolution of the images. Thank you!
0
votes
0answers
22 views

Is there a way to create a named symbol in OpenLayers composed as either a multi-dimensional array or as a MultiPolygon?

OpenLayers provides a minimal set of "well-known" shapes which can be used as point icons: /** * Constant: OpenLayers.Renderer.symbol * Coordinate arrays for well known (named) symbols. */ ...
0
votes
1answer
37 views

OpenLayers - when zooming out OSM layer “slips” East

I have some code that displays an OpenLayers map composed of various layers (vectors, markers and features) on top of an OpenStreetMaps basemap. Everything worked fine until some months back. ...
0
votes
0answers
53 views

Spiderfy Unclustering Effect in OpenLayers

I am looking for a good way to display multiple features (with custom marker icons) all located at the same location. At all zoom levels I need to be able to see all markers at a location either all ...
0
votes
1answer
46 views

WFS not in position when using a Google Base Layer

I use two base layers and user can switch from OSM Mapquest to Google from a drop down list. However my WFS layer is not in position (shift of about 5 degrees to the East) when the base layers is a ...
0
votes
0answers
100 views

Working example of how to use openlayers 2.13.1 + ExtJS 4.2 + GeoExt 2

I've been working in GIS with Esri framework for over two years, so I have some experience in GIS. Now I'm working with open source (newbie) in a geoportal and I would like a some working code for ...
0
votes
1answer
175 views

Export map as image by Openlayers

I am using Openlayers to publish maps and Geoserver as map server. Now I can add more than one layer in Openlayers like WMS , Vector , WFS and Google Maps as base map. How can i export map's current ...
0
votes
1answer
54 views

Adding features/points/polygons to OpenLayer map

I'm trying to get a bunch of markers/points/polygons to show up on my OpenLayer map, but nothing seems to show up and the vector_layer seems to only have 2 SVG attributes when it should have way more ...
0
votes
1answer
37 views

drag and drop features of a WMS service using open layers

I have a WMS service,which is a point layer.Is it possible to drag and drop features of a this service layer through openLayers?
1
vote
1answer
63 views

geoserver and its layer is pointing(base url) to other server(hosting server) not my domain url

i am using Geoserver 2.4.4.my geoserver url is http://links-map.com/geoserver/web/ but when i click to loging button of geoserver its url is changed ...
0
votes
0answers
46 views

Can OpenLayers2 render a completely custom font-face in a text or point symbolizer?

I am trying to style a feature using a custom font. Geoserver has an extension allowing external graphics in SLD to be defined by a font. OpenLayers doesn't appear to support this particular ...
0
votes
1answer
143 views

How do I add multiple OpenLayers Vector Layer markers to a map using AJAX, JSON, and jQuery

I am attempting to parse a JSON file and place markers on an OpenLayers based map application. I am using jQuery to perform the AJAX and iteration on the JSON file. I am having a problem with the ...
1
vote
1answer
129 views

How accurate is the Scale Line in OpenLayers

Is there any source describing the accuracy of OpenLayer's scale line? You can get an scale line by using the constructor: map.addControl(new OpenLayers.Control.ScaleLine()); However, it seems to ...
0
votes
0answers
35 views

Why is ArcGIS Server 10.0 getFeatureInfo not being buffered?

Using AGS10.0 I have a point featureclass published as wms. In my Openlayers client, I am not able to click on the point and recieve the GetFeatureInfo response unless I hit the target very ...
1
vote
1answer
20 views

Mixing externalGraphic and default point renderer on VectorLayer

Is it possible to mix externalgraphics and the default point renderer for vector layers? I haven't been able to find an example that does this.
0
votes
1answer
51 views

OpenLayers Problem | Unable to zoom Layer

I am trying basic examples of OpenLayers with my own Geoserver. When I tried to replace WMS with own local WMS path, I am unable to zoom layer after a specific scale. var map; function init(){ ...
1
vote
2answers
55 views

OpenLayers: Point icons disappearing

I have a very simple setup where I have a feature vector layer on top of an OSM layer in OpenLayers 2.13.1. However, I notice that the icons of my points in the vector layer begin to 'become ...
0
votes
2answers
134 views

How to find when train nears station? [closed]

I am creating an app for tracking trains. When the train comes near to a railway station the system should identify it. To do that I want to gather GPS coordinates near the station and save them. ...
1
vote
1answer
55 views

GeoJSOn or WFS service to view, edit and save geometries

To view, edit and save in postgis geometries using OpenLayers + Geoserver what is recomenadado use GeoJSON or serivços WFS? I ask this for performance and additionally want the edition is recorded ...
5
votes
1answer
142 views

How to handle the New ESRI Ocean Basemap

Some of you may have seen this recent (4/28/14) ESRI blogpost - The New Ocean Basemap. ESRI, in their infinite wisdom, has split up their Ocean Basemap into 2 separate services. One with just the ...
0
votes
1answer
33 views

EPSG: 900913 x Display EPSG:4326

I have a question when the projected 4326 and 900913. The open layers uses by default 4326 using the projection coordinates in decimal fomato already uses google maps with coordinates 900913 meters. ...
1
vote
2answers
153 views

Openlayers: Get Start and End Points of Line Vector Features

I'm trying hard to get start and end of lines from a vector. The line vector is loaded from a kml-file. For now, I tried to iterate over features in the vector and grab the start point and put it in a ...
0
votes
0answers
60 views

How to set default style of layer using rest api in Geoserver

Hello friend, I want to change the default style of the layer in Geo server using the REST API.For this i get this code curl -v -u admin:geoserver -XPUT -H "Content-type: text/xml" -d ...
1
vote
2answers
101 views

How to zoom to wms layer after cql filter on Open layers

I created o layer contain points and I added it to a map as WMS layer on OpenLayers I did a CQL filter an it's work but I'd like to zoom to the selected point when I worked with getextent or ...
2
votes
1answer
109 views

How to dynamically display mouse position (coordinates) while drawing polygon?

I would like to dynamically display coordinates of the point, using label for example, while drawing polygon. I did so far: var fromProjection = new OpenLayers.Projection("EPSG:4326"); var ...
0
votes
0answers
27 views

Openlayer not support touchstart for map object?

For a while, our website only supports desktop environment so we didn't set up any touch handlers. Openlayer working fine so far. But today we got a request to add support for touch devices too. ...
-1
votes
1answer
31 views

Map disappear after a click button event

I have a problem in my project that uses both openlayers and asp.net. The problem is that my map disappears when I click in the button on my web interface. Anyone already encountered like this ...
0
votes
0answers
34 views

No 'Access-Control-Allow-Origin' header is present on the requested resource. Using Geoserver + Openlayers [duplicate]

This is my code to open a WFS layer from geoserver: <!DOCTYPE html> <html lang='en'> <head> <meta charset='utf-8' /> <title>My OpenLayers Map</title> ...
0
votes
0answers
37 views

Bing Open layer shows ok in QGIS and Composer Preview, but is misaligned after exporting to PDF

I have QGIS 2.2 running on a Mac with iOS Maverick. I have prepared a map with layers with different CRS, including a Bing Open Layer as base layer. The project has the 'On the fly coordinate ...
0
votes
1answer
29 views

Using OpenLayers and OpenStreetMaps to display statistical information with colors : possible?

I'm planning to build a statistical tool using OpenLayers and OpenStreetMaps. This tool will have to display statistical data for french departments with colors. What I would like to do is the same as ...
0
votes
1answer
36 views

Problem with adding placemark from kml file with specific id

I have a problem with adding a vector layer from kml file. I am trying to make XMLHttpRequest and add only a placemark with specific id. Nothing is displaying on the map. Request is successful and ...
0
votes
1answer
95 views

Why are map tiles being repeated? Using MapServer and Openlayers

Problem I have: map tiles from my layer are being repeated. Shapefile is projection 3059. I have specified 3059 is in the mapfile and also when creating map object. I know OpenLayers.Layer.WMS is ...
0
votes
0answers
29 views

Openlayers WFS change featureType

I am trying to change wfs featuretype "on the fly" in openlayers. (This method http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html#OpenLayers.Protocol.WFS.v1.setFeatureType) This ...
0
votes
0answers
30 views

How to cache write Google Maps in OpenLayers?

How can I cache write Google Maps in OpenLayers? Cache writing function of OpenLayers works with other maps but I have difficulty implementing it with Google Maps?
1
vote
2answers
98 views

Find closest feature

How can I find the closest feature(coordinates) in a json file from a set lat lon using openlayers. Currently, I get the centroid point(lat,lon) from the selected polygon feature ok, but I Would also ...
0
votes
0answers
34 views

GeoExt2 projection problem with OSM and googlemaps

First of all, I already see the topic in Difficulty to display WMS and Googlemaps layers using Geoext and ext but I'm still not able to find an answer. I'm using the example in ...
1
vote
1answer
24 views

Openlayers active select control on layer prevents drag and zoom

I've build this web-map http://gimoya.bplaced.net/Openlayers/Trails/map.html with bike-trails (retrieved from a KML on my webserver), where several trails from a region are covered by a selectable ...
0
votes
0answers
62 views

CQl Filter Don't work with WFS layer in Open Layers

I used a WFS layer from geoserver in open Layers it's shown on MAP but when I want to use a filter it doesn't work I don't know where the error this is the code : <script ...
0
votes
1answer
30 views

Is there a widget/service to put a marker and send data?

I need to ask people where they want to go in the city, and as a response I need either geocoded location, or a marker on a map. Although everyone knows his home address, not everyone knows the ...
0
votes
0answers
22 views

about updating WFS with popup

I want to ask you something about this How to collect data via WFS and Popup I started to build my own WebGis using openlayers and geoserver, but I'm newbie here I want to add form to update the ...