Tagged Questions

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

learn more… | top users | synonyms

1
vote
0answers
481 views

OpenLayers + GeoServer + Oracle: WFS-Transaction update error

I am trying to implement wfs-t in a map application. tried using ArcGIS server wfs-t, and didn't make it since there is a lock mechanism while trying to edit a feature.ArcGIS WFS-T + OpenLayers; then ...
3
votes
2answers
3k views

Markers on openlayers openstreetmap

I am trying to show some markers from a database in openlayers. I tried it in google maps in past using GDownloadURL fuction to read a json php generated file from my database. Now I tried the same ...
2
votes
1answer
186 views

Allow viewer to embed OpenLayers in their own site?

I am trying to create a way for someone viewing my site to embed the map they are viewing into their own site. Not sure where to begin on this. Any help? Thanks!
2
votes
1answer
2k views

How to set polygon opacity on openlayers?

I have some prolems showing polygons in openlayer. I want to divide one city in areas. For the moment I have zona1 and zona2. I took lat and long from google maps so I think they are correct. My ...
2
votes
1answer
2k views

Creating Vector features onload in Openlayers

Using openlayers and javascript I wish to create two vector layers and add a polygon to one of them and a circle with a centre point to the other My polygon will be in WKT and my circle will be a ...
2
votes
1answer
244 views

Select all vector features underneath the mouse cursor (clientside)

I have a number of polygons that are exactly equal covering each other and shown on one layer. When using OpenLayers.Control.SelectFeature - only the topmost feature is selected. How to get info on ...
3
votes
1answer
3k views

How to reverse geocode without Google?

I have a basic tracking system i've written with OpenLayers using google and openstreetmap and I want to use geocoding to get street names etc However, I'm a bit confused. I was hoping there was a ...
2
votes
1answer
319 views

Openlayers TMS default image

In OpenLayers, when a tile is missing in a TMS layer, a semi-transparent pink rectangle shows in its place. Is there a way to load some default image, like one saying "No data for this region under ...
1
vote
0answers
495 views

Why does Openlayers plugin crash QGIS 1.7.4?

When I open the openlayers plugin my qgis 1.7.4 crashes. I use Win7. I'm using the CRS Google Mercator and QGIS crashes. However, I've install the QGIS 1.9.90 and the plugin works in this ...
2
votes
1answer
4k views

OpenLayers - a GeoJSON layer

OpenLayers can parse GeoJSON in order to create an array of features. So, it is possible to create a layer from GeoJSON input by simply parsing it and then adding the features to a new vector layer. ...
1
vote
1answer
1k views

Cannot Overlay PNG onto Map with OpenLayers

I am trying to create an OpenLayers.Layer.Image and incorporate it into my map. I have this block of code: map = new OpenLayers.Map ({ div: "dvMap", theme: null, ...
2
votes
1answer
3k views

How to overlay WMS layer on OSM maps?

I am using OSM/Google maps and WMS Layers. Now I want to know how my WMS will overlay on this map. I am using the following code for that: function init() { map = new ...
1
vote
3answers
3k views

Trouble Displaying GeoJSON file in OpenLayers

I am noobie to OpenLayers and can not for the life of me figure out how to display a geoJson file. This seems like it should be easy but I have been banging my head for a day. I'm sure I am missing ...
2
votes
2answers
812 views

openlayers code PanZoomBar is not a constructor and GetFeatureInfo error

I’m having trouble with my openlayers code displaying postgis data in geoserver Why would this line (also PanZoomBar) map.addControl(new OpenLayers.Control.Scale($('scale'))); Produce this error in ...
2
votes
1answer
1k views

Openlayers dynamic filtering/styling of geojson layer

I'm working with Openlayers and overlaying a geojson file representing species type over OSM. I have an HTML form that allows users to select a species type and I then need to filter the geojson layer ...
1
vote
1answer
537 views

I wanting to reproject the vertices of my polygon. I have been able to achieve this for the bounds but having a bit of trouble with the vertices

I wanting to reproject the vertices of my polygon. I have been able to achieve this for the bounds but having a bit of trouble with the vertices. function onFeatureModified(event) { ...
4
votes
1answer
3k views

Print Library for Open Layers?

I realize this is a bit of an open question but are there any known open javascript libraries which facilitate printing an OpenLayers map? I'm looking to produce the content on the client and ...
2
votes
1answer
6k views

problem with open popup onclick marker in openlayers?

I am very new to openlayers. I have done showing map and whenever we click on the map it is showing marker. But i need to open the popup when i click on the marker. The following code has some ...
2
votes
1answer
448 views

View Markers on Both Sides of OpenLayers Dateline — Tips and Tricks

I'm looking for advice on how to display vector markers on both sides of the dateline. I'm using a GeoRSS feed. Currently only one OpenLayer's "globe" worth of data shows at a time. You have to pan ...
1
vote
1answer
633 views

How to create a metadata json member for an openlayers layers object and display in extjs grid?

I want to do the following: add metadata: "this is the layer metadata" ....to my openlayers layer config. This should then be presented in an extjs grid. I can use alert(layername.metadata); ...
5
votes
4answers
3k views

Why is there a small white space between tiles in Chrome?

I'm using openlayers to display a google base-map layer and it works fine on Firefox/IE/Safari. I'm having problems with Chrome as the tiles have a small white space between them shown in this image. ...
3
votes
2answers
1k views

How to get linestring length while drawing?

I've got a control to draw lines: new OpenLayers.Control.DrawFeature(vecLayer, OpenLayers.Handler.Path, { callbacks : { // "done" : doneHandler, "point" : ...
5
votes
1answer
2k views

OpenLayers Selectfeature get mouse position

I'm have been searching for several hours and do not find a way to get mouse coordinates after a SelectFeature, which returns the feature by itself. I saw that this has been asked several times ...
1
vote
0answers
824 views

How to speed up OpenLayers with WFS in IE?

I'm using Openlayers, Geoserver and noticed that IE is very very slow to display WFS layers. I haven't so many WFS features, about 300. Google base layer appears after 1 sec. but my two WFS layers ...
2
votes
2answers
620 views

OpenLayers Combines Rules and StyleMap/SelectFeature?

I'm using GeoServer, OpenLayers and WFS features. For one layer, I managed to set either rules to display according to a field or SelectFeature with a styleMap to highlight features when the mouse is ...
3
votes
1answer
2k views

display multiple vector layers from single PostGis table in GeoServer using OpenLayers — REWORDED

Prompting suggestions I’m going to attempt to reword my question I have a PostGis table that contains overlapping vector polygons. I need to display a selection in Geoserver and provide ...
2
votes
1answer
447 views

OpenLayers wrapDateLine Problems with ArcGIS93Rest

I'm having issues viewing a ArcGIS93Rest layer on both sides of the dateline -- the data doesn't cross the dateline. The problem is that i only see data for one side of the dateline until i pan west ...
2
votes
1answer
195 views

Disable layer checkbox if no geometry on that zoomlevel (source=wms)?

I have a map application using GXP which displays different data coming from different WMS sources. Some geometry is only available on certain zoomlevels (available via MaxScaleDenominator on the ...
0
votes
0answers
396 views

Using CQL_FILTER BBOX on WMS layer causes ORA exception window SRID does not match layer SRID

I'm trying to limit WMS layer to a specific BBOX. mainLayer.mergeNewParams({ 'CQL_FILTER' : "BBOX(geom, 6541844, 5577147, 6584851, 5620154)" }); Which gives following exception in geoserver's ...
1
vote
2answers
1k views

Allowing cross-domain access of third-party WMS server from OpenLayers

I have a web site with an OpenLayers client. I also have a GeoServer running on the same domain. My OpenLayers uses services like WMS, GML, etc. from this GeoServer installation and everything runs ...
1
vote
2answers
4k views

How to change CSS style for panZoomBar?

How do I change or add the CSS style for panZoomBar? I.e. to change the panup, pandown, panleft, etc hover in CSS by attaching the class in CSS for those... and which class should I create it in...
1
vote
1answer
580 views

Unproject Radius with Openlayers with CRS:84 Projection

I have made a Openlayers integrated map that lets you draw a circle, On completion of the circle I have told the map to give me , Bounds, Center Long and Lats, and lastly the radius. My problem is ...
1
vote
1answer
409 views

OpenLayers ArcGIS Image Service Support

i have ArcGIS Image Server for publishing my raster data to my user. In traditionally way i have been tiling with gdal and it takes a long time besides this it requires more effort for getting true ...
2
votes
5answers
5k views

How to get WMS LegendGraphics using Geoserver and GeoWebCache?

I am using GeoServer alongwith the default, build in GeoWebCache. I am using Extjs and GeoExt, as well. Everything is running well, except for the legend graphics request. My code for layers is as ...
1
vote
1answer
206 views

How to store point data (height) for each point in a linestring in openlayers

I am reading GPX files into OpenLayers. I would like to be able to save the edited route back to GPX including the height and time information that the original file contained (or use SRTM data to ...
1
vote
1answer
548 views

OpenLayers GML Polygon Performance

I'm working on a project where we have a large number of very detailed polygons being displayed on a image using Openlayers. The polygons are added to the map through a GML feed. We are having end ...
4
votes
1answer
2k views

How to display Radius after Resizing a Feature in Openlayers

@captDragon has helped me with calling the coordinates of a polygon after I have resized or dragged the feature. Ineed the radius now, i have done a radius alert on my other map,Which works correctly, ...
2
votes
1answer
1k views

how to get Coodinates after Resizing a feature Openlayers

I'm trying to display the coordinates of a Feature or vector layer after I use the modify radio button to resize my vector, but it does not work, nor on my drag feature. I'm using ...
1
vote
1answer
1k views

How to stop or deactivate draw polygon control after the first polygon has been drawn in Openlayers

I want to only be able to draw one circle on my map and then disable the control. Below is my code, Any suggestions? <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...
4
votes
2answers
5k views

Setup own Openlayers Proxyhost [duplicate]

Possible Duplicate: Problems with OpenLayers and WFS - proxy.cgi issues I have seen some example related to WMS Get Feature Info like : ...
2
votes
3answers
4k views

OpenLayers WFS protocol: work with filters if the protocol is defined out of layer constructor

follow question:wfs-load-feature-check the scenario is: i am trying to load a WFS layer, since it takes a while to load all features, I want to give user a notice while waiting for response. the ...
4
votes
1answer
2k views

How to draw Geodesic lines in Openlayers?

Hi i want to display multiple lines between two coordinates. i will pass no of lines and color of the line, it has to display like below image. please see the below image.this is my previous post
0
votes
3answers
1k views

Openlayers infobox?

is there any infobox available in Openlayers same like google maps infobox google maps infobox
1
vote
1answer
230 views

WMSGetFeatureInfo not finding my layer

Having a problem trying to get WMSGetFeatureInfo to work in openlayers - running off of Geoserver (http://gisnexus.com/cmha/cmha_site_test.html) you click on any feature, it shows as if the layer is ...
1
vote
1answer
2k views

Resizing and Reshaping features in Openlayers

Resizing and Reshaping features in Openlayers. I have a map with Openlayers and some controls to draw and modify Features. I need to activate the Resize and Drag and Rotate check button fields as ...
5
votes
3answers
5k views

OpenLayers load WFS vector layer: how to check whether all features are returned from server?

My app takes several seconds to return all features of a WFS layer from server, I am wondering whether there is a way to check whether all features are returned in coding, so that we can add a ...
1
vote
2answers
881 views

How to split a feature and save back to database?

How to split/cut a polygon through OpenLayers split method and same editing save to the PostGIS?
2
votes
2answers
585 views

OpenLayers WFS implementation in java for editing and saving data

I am new user in openlayers and want to implement WFS layer to edit and save data to postgis tables.am using netbeans as development environment and m very new in that.Can anyone to help me regarding ...
4
votes
1answer
5k views

How to draw lines with different colors in Openlayers?

I want to display multiple polylines with different colors in openlayers. Can any one guide me regarding this. I have done this in google maps. but i don't know how to do it in openlayers. I am ...
0
votes
1answer
604 views

OpenLayers controls keyboard shortcuts

I'd like to hook up keyboard shortcuts to my map controls e.g. holding down 'z' will activate the zoombox tool etc. I can't seen anything relevent in the API for doing this. Is it easily done? My ...