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

learn more… | top users | synonyms

1
vote
1answer
858 views

display openlayers lat/long map bound on page

I want to display the bounds of my current extent on the page. I am not too great with javascript. I know it must be related to this: map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, ...
4
votes
1answer
1k views

How to integrate OpenLayers and ArcGIS Server?

I am using the OpenLayers JavaScript API within a web application. I am displaying non-base layers hosted on an ArcGIS server. When I load the ArcGIS layers, I load them using ...
1
vote
1answer
376 views

Openlayers Css problem?

I have succeeded to show Openlayers map in my application, when i show css popup(not Openlayers Popup) map has to blank as the rest of the application. But Openlayers map is not getting blank. What ...
1
vote
1answer
494 views

Preventing an Openlayers WMS layer from updating on zoom-change

I'm using openlayers to overlay a raster. When I zoom out, the overlaid layer expands to cover a larger area than was originally requested. I want the tile to be fixed to a particular boundary, and ...
2
votes
1answer
1k views

QGis failed with error: latitude or longitude exceeded limits

I have some shapefiles from vegetationtypes in QGis and i wanted to put a googlemap in background, so i installed the open layers plug in. But every time i tried to load the map, theres an error ...
0
votes
0answers
115 views

how to limit points(of particular parameter) in shapefile in WMS?

I wanted to filter out the points in shape by passing parameter and display points on screen in WMS that pass the parameter. I am taking shapefile from geoserver in WMS. Can any one help me ot with ...
2
votes
1answer
1k views

With OpenLayers addLayer(s) Isn't Displayed

I am trying to figure out why the addLayer here isn't displaying the boxes that are present in the example shown below: function($) { var box_extents = [ [-10, 50, 5, 60], [-75, ...
1
vote
0answers
58 views

How to load WFS in jsFiddle?

I'm trying to implement a WFS service in jsFiddle for an OpenLayers map. It works fine here: http://openlayers.org/dev/examples/cql-format.html My example of it is (the map loads but the filter ...
2
votes
1answer
174 views

Can't Seem to Replicate the KML Layer in jsFiddle

I can't see why I am unable to replicate the KML Layer Example: http://openlayers.org/dev/examples/sundials.html in jsFiddle: http://jsfiddle.net/JPN4C/ I'm assuming that it's the map protocol ...
3
votes
1answer
2k views

OpenLayers & GeoJSON files

After some hunting, it seems that if I have an a geojson file, I NEED the data and map to be on a server in order to view this in OpenLayers because of the protocol class. I saw an example where I can ...
1
vote
2answers
856 views

Getting OpenLayers Working in jsFiddle

Has anyone else noticed a problem getting OpenLayers to work within jsFiddle? I can't see what's wrong with http://jsfiddle.net/dPdhZ/ or the others I've mentioned here: ...
2
votes
3answers
4k views

Beginner HELP please : How to add a WMS layer from GeoServer with OpenLayers?

After doing some basic OpenLayers examples where I used WMS layers from WMS providers like this: http://maps.opengeo.org/geowebcache/service/wms, I wanted then to add a WMS layer from my GeoServer. I ...
2
votes
3answers
2k views

Display 3d building using OpenLayers

Is there any way to display a 3d building model as a layer under OpenLayers ? i have the building models drawn using Google sketchup , is that useful ?
1
vote
0answers
465 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
175 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
233 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
311 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
478 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
2k 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
797 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
515 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
434 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
617 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
2answers
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
812 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
589 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
429 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
193 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
375 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
565 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
396 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
4k 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
203 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
535 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, ...