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

learn more… | top users | synonyms

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
446 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
629 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
617 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
443 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
395 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
577 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
408 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
546 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
873 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
583 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
602 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 ...
5
votes
1answer
683 views

Creating animation point using openlayers and geoserver

Before getting started on creating points that are animated like this using flash http://adventure.nationalgeographic.com/adventure/trips/americas-best-adventures/map/ I would like to know if it is ...
1
vote
2answers
383 views

Openlayers - Increase icons size?

I built a small openlayers/geoserver application and I'm trying to change the size of the LayerSwitcher icon "+" (right) and the one of the standard zoom icon (left). I tried to modify css but can't ...
1
vote
1answer
793 views

Googlemaps Layer on Openscales

I'm using openscales in a web mapping project, i would like to add a Google maps layer, i know that there's some licence problems , but i don't care for these licence issues, i'm looking to add ...
3
votes
1answer
581 views

GeoServer - Serving html files

Encountering a Geoserver - Openlayer WFS layer not visible I found this interesting answer . Solution about html page on the server surprised me very much as I tried previously to load an html page ...
3
votes
2answers
2k views

Using PHP to create a GIS Web application

I've developed many GIS Applications using ESRI ArcGIS 9.3 and 10.0 for ASP.NET . I'm wondering if i can do a GIS application using my SHAPE files and Pure PHP scripting . I've googled for that ...
3
votes
3answers
2k views

GeoWebCache WMTS always replacing tiles in cache

I've spent the last two days trying my hand at GeoWebCache. I've had some issues and am now out the office so can't access any code to attach. I know if i don't post this it'll bug me all weekend. ...
1
vote
1answer
410 views

Offset to symbol in WMS request

Is it possible to give offset to symbol of point feature using sld in openlayers or geoserver?
2
votes
1answer
146 views

How to get higher resolution images from USGS into openlayers

Is there a way to get better resolution maps from USGS? Thanks,
4
votes
2answers
2k views

How to get “Pinching” in Openlayers working on Android?

If you go to THIS OpenLayers Mobile example on android you'll notice that "pinching" for zooming does not work. But it works for iPhone and iPad. Anyone know how i can get "pinching" to work on ...
4
votes
1answer
2k views

GeoServer 101 : how to find the URL of a layer?

I'm a total n00b with GeoServer. I've installed it and have loaded a sample shapefile, which I can view using the Layer Preview option. Now I want to add this shapefile (as a WMS layer) to a simple ...
3
votes
1answer
1k views

How to access USGS national map viewer?

I know that I can use arcGIS to display the USGS national map viewer (aerial, raster, topographical, etc), but I will be using API for commercial use and it would cost $4,000. 1) Can I use openlayers ...
4
votes
3answers
558 views

WFS Caching / Back button

I'm using WFS protocol on Vector layer / GeoServer / PostGIS Currently the map is refreshing and calling new requests whenever i do anything like searching or drawing and when i move back to a part ...
1
vote
0answers
1k views

OpenLayers Popup Anchored Offset Problem

I have an animation where I move a point along a line. At certain spots of that line I open a popup to show a picture. I want the popup to be centered on the point. It seems to work for some points ...
0
votes
2answers
2k views

How to get address coordinates from OSM?

I've got an osm file containing the city I live in. Now I've got a tool to render and display it in the browser (mapnik+postgis+tilecache+openlayers+geoext) and the task is to make an address search. ...
0
votes
1answer
217 views

identifying single overlaping features from a GeoServer layer

I'm trying to use GeoServer to display features from a PostGis table the url will look similar to this. Example URL ...
1
vote
2answers
3k views

How to initialize a WFS Layer?

Here is the code block (the layers are stored in Oracle database): var saveStrategy = new OpenLayers.Strategy.Save(); var adresspt_wfs = new OpenLayers.Layer.Vector("Address points WFS", ...