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

learn more… | top users | synonyms

0
votes
0answers
29 views

How to make layer group folder into a check box to turn off all layers inside?

I would like to create a geoext layer tree containing layer groups which can check or uncheck all the layers within them. Would anyone know if this has been done or can be done? I was thinking about ...
0
votes
0answers
59 views

OpenLayers displays nothing when I try to add WFS Layer from Geoserver - can't work out where the problem is occurring!

I hope someone can help me with this problem as I'm very confused! I recently downloaded the IHO Sea Areas shape file from http://www.marineregions.org/downloads.php One of my colleagues has ...
0
votes
0answers
28 views

Openlayers stylemap default style doesn't render until mouseover in IE 7/8

I'm using Drupal 7 Openlayers, and adding my own custom behavior. I have no trouble getting my code included, and it works well on other browsers. But in IE 7/8, the layer features render with a null ...
0
votes
0answers
30 views

Draw elevation from mouse move

I recently tried this example but unfortunately It's not working, I don't know why (I've tried as same as possible) My output is I want to use WMS data from geoserver and applied it in CesiumJs or ...
1
vote
0answers
42 views

Openlayers filter strategy on wfs deactivate problem

I have a filter control which works nicely. However, when I try to reset/remove the filter, I don't get the original features back. The debugger shows my features array as still only being the reduced ...
0
votes
0answers
56 views

Why do my geowebcache tiles not work in openlayers client?

var options = { resrictedExtent: restrictedBounds, maxExtent: restrictedBounds, units: "m", projection: "EPSG:31467", ...
0
votes
0answers
38 views

passing tif image as input to openlayers code (wps implementation)

how to pass dem(tif) or raster layer as input to the openlayers ... //OpenLayers.ProxyHost = 'proxy.cgi?url='; OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; //OpenLayers.ProxyHost = ''; var map, ...
1
vote
0answers
32 views

how to make a layertree with multple nested nodes?

On a previous question I asked how to get two levels on a layermanager. The response provided there was what I was needing at that moment. Now, I´ll like to create a little more complex structure in ...
0
votes
0answers
33 views

How to register geometries using OpenLayers and GeoServer in PostGIS?

I put a Editing Toolbar on my page using Google Maps Api as base layer. I want to register lines and points in PostGIS. But I want to know how I can get the longitude and latitude of gemotria (line ...
0
votes
0answers
18 views

Geoserver layer rotation problem

I have a mapping system setup with PostGIS, Geoserver 2.4.1 and OpenLayers 2.12 I am trying to use the geoserver vendor specific parameter "angle" to rotate a layer, and it seems to work fine. ...
0
votes
0answers
27 views

OpenLayer Maps not zooming

Initially the map zoom is set to 8, and that's the only place in the code i can change the zoom, any other location doesn't work. I have a function that draws a marker and a route on the map (works ...
0
votes
2answers
53 views

OpenLayers WMSGetFeatureInfo on MapServer WMS layer

I am trying to get a WMSGetFeatureInfo request to work on my MapServer WMS layer but I am not sure how to correctly configure my map file and the request in OpenLayers. I have setup a jsFiddle with ...
0
votes
0answers
170 views

Add Legend with GeoExt in OpenLayers

I need help with legend display for a WMS layer. So far I did this: - insert a Google Map Hybrid layer - insert a layer called "Vladaia" for creating the page - insert CQL filter for WMS layer - ...
0
votes
0answers
24 views

feature position on non-Geo-referenced Image

I use OpenLayers to show Map , when im creating the map, i want to show map image with an ImageLayer and VectorLayers, the image is non Geo-referenced. The use case: i receiving a map image url from ...
0
votes
1answer
72 views

Combining Hover and Click events in OpenLayers

I can specify event callbacks in an OpenLayers layer: var vectorA=new OpenLayers.Layer.Vector("A"); vectorA.events.on({ "featureselected": callback }); and I can specify event callbacks in a ...
0
votes
0answers
84 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
107 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
26 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
61 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
146 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 ...
2
votes
1answer
368 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
114 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
45 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
247 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
222 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
37 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
45 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
65 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
51 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
116 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
265 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
68 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
45 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
69 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
56 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
216 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
169 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
39 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
54 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
61 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
149 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
58 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
157 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
35 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
195 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
85 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
131 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
122 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 ...