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

learn more… | top users | synonyms

2
votes
2answers
4k views

openlayers change marker icon, size and offset after drawn

I'm having much trouble changing my (feature)marker icons 'on the fly'. The problem is that I use much different images and also need to change the offset. So I iterate over every marker and make a ...
1
vote
1answer
942 views

Displaying Feature Info for a user defined polygon

To retrieve feature info for a polygon selection, I have the OpenLayers code below: var featureTypes = ["nig_admin1", "nig_admin2", "nig_admin3", "nig_landscan"]; var populationCtrl ...
2
votes
2answers
1k views

How to have a popup anchored at the clicked position?

I have a vector layer overlaid above a base layer. Basically I want to have a popup anchored at the clicked position when clicking anywhere on the vector geometries. So I have the code: var ...
1
vote
1answer
3k views

show a Collection of LineStrings with labels

I use the following peace of code to show multiple LineStrings which have a point as the last one, along with a label: var strokeColors = [...];//"#FFAACC" kind-of elements var linesLayer = new ...
1
vote
0answers
646 views

Geoserver in LifeRay

Hi i want to use geoserver+openlayers in LifeRay portlet. My main question its how to do this? I mean how to include geoserver in liferay, how to open geoserver's admin panel in liferay. Next question ...
1
vote
2answers
706 views

Labels not visible at same zoom range

I am using geoserver and sld : I want to make all labels visible at all zoom levels. How can I do that with SLD? <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor ...
2
votes
3answers
2k views

OpenLayers GetFeatureInfo for GeoServer Layer Groups

I've created a GeoServer layer group. I'm using OpenLayers.Layer.WMS to retrieve the layer group, and this works fine. In addition, I'd like to pull feature info for the layer. For this, I'm using ...
3
votes
1answer
294 views

How to draw line by scratching on map using OpenLayers?

Is it possible to draw line by scratching on the map using OpenLayers? I tried some examples, all the examples are drawing by clicking. I want to draw by scratching, just like drawing in normal life ...
1
vote
0answers
77 views

OpenLayers Google Closure externs file

Has someone written Google Closure Externs file for OpenLayers that I can use freely ? Externs file similar to those for jQuery, GoogleMaps, Underscore ? Have to ask this before I create my own if ...
2
votes
1answer
745 views

Filtering a loaded kml file in OpenLayers

I'm trying to create an interactive search engine (for finding event tickets) of which one of its features is a visual map that shows related venues using OpenLayers. I have a plethora of venues ...
1
vote
0answers
300 views

OpenLayers - Switching to Google Basemap causes a flicker as it zooms to extent

I created and example based off of the spherical-mercator example example and placed it here. I made the bing road layer the default. If you zoom in on a location and then switch to a google layer ...
3
votes
1answer
2k views

XYZ Layer in Open Layers has Missing Tiles

In Open Layers I'm having a missing tile problem where it generates a missing link icon and a pink background. I found several threads including this one saying to add this code ...
2
votes
1answer
130 views

OpenLayers 2.12 Release Schedule? [closed]

Does anyone here know when OpenLayers 2.12 is likely to become a Stable release rather than a release candidate, it contains so many handy performance and user interface improvements that I really ...
16
votes
4answers
709 views

Advice on a generic open-source package roadmap

I just wanted to ask an advice from the open source GIS gurus on a recommended stack to use for my envisioned project, as I do not fully understand the limits of the possible with most packages. I ...
1
vote
1answer
60 views

OpenLayers - vector boxes and paths

I'm using OpenLayers to make warehouse map. How to prevent drawing lines (paths) over some vector objects already on the map?
1
vote
0answers
254 views

A WMS layer fails to show at some scales

I am tring to overlay my WMS layer on Google but at a particular scale it doesn't show the data of my layer. What can be the problem? <html xmlns="http://www.w3.org/1999/xhtml"> <head ...
2
votes
1answer
782 views

Show transparency after adding transparent MapBox layer to Open Layers (Openlayers)

I'm new to tile set maps. I am trying to add MapBox layers that I made in TileMill (and have sitting in my MapBox Hosting account) into Open Layers. I have successfully added a non-transparent layer. ...
1
vote
2answers
557 views

Its possible to catch ServiceException in Openlayers?

Im trying to catch exception in OpenLayers using vector layers in conjunction with http protocol, its possible to intercept an ServiceException from geoserver ... it will be great to display some ...
1
vote
1answer
310 views

how to make openlayers example work in jsFiddle

Hy, I'm working on a jsFiddle with a openlayers example in it. http://dev.openlayers.org/releases/OpenLayers-2.11/examples/snapping.html At the moment it's not working because it's not getting a ...
1
vote
0answers
246 views

Openlayers WMS layer not diplaying in IE windows mobile 6 emulator

I am new to openlayers. I tried this example. I have published world shapefile to tiger workspace as 'country' layer to geoserver and want to access with WMS. The world map is getting displayed in IE ...
3
votes
1answer
1k views

OpenLayers - Vector Layer and Google Maps - vector layer and google layers don't seem to be in sync when zooming on Chrome

I am working with a Google Layer and a vector layer in OpenLayers. I was wondering if anyone else noticed any problems with Chrome displaying Google Maps layers on OpenLayers? It seems that when I ...
3
votes
2answers
2k views

Openlayers create, edit and save/export to kml

I'm trying to create, edit and save a point vector as kml file in an Openlayers app. I have managed the create and edit by adding and empty vector layer and then adding the control ...
2
votes
2answers
193 views

Using DrawFeature to draw a line between features

I have a DrawFeature control that I want use to draw a line between two features (on a separate layer from the lines). I use a Snapping control to snap the cursor to the features. Any ideas on how ...
5
votes
1answer
2k views

OpenLayers on iPhone with navigation: marker-click event won't work

I'm making a map with openlayers. For the navigation on the iPhone I added OpenLayers.Control.Navigation(), so zoom and pan work fine. On the desktop, i can click a marker and a popup appears. But on ...
1
vote
1answer
523 views

Draw polygon with gradient color in Geoserver

I have polygon like sector. I want to fill it with gradient color. Is it possible to do this in Geoserver? Thanks. UPDATE I found some code with filling image <FeatureTypeStyle> ...
1
vote
2answers
348 views

Geodjango - using projected coordinates with olwidget

I have a database in GeoDjango containing data based on the Australian MGA54 coordinate system (SRID 28354). I have the srid set in the model definintions and when using the standard GeoModelAdmin ...
3
votes
1answer
162 views

software architecture for creating routes?

I have a system that can alert staff by email if their device goes into/out of a geo-zone However, we now need to create a route, and then email if someone goes off this route Technically, how would ...
2
votes
1answer
193 views

The relation between the Feature's Geometry and its externalGraphic

I wonder what is the relation between the Geometry.Point one sets for a Feature.Vector and the image provided as externalGraphic for the style, in OpenLayers. Is the Geometry.Point of a feature for ...
2
votes
1answer
438 views

Vector layer feature destroys after geometry transform

I want to get drawn polygon coordinates. var myLatLonSquare = vectorLayer.features[0].geometry.transform(map.getProjectionObject(), new OpenLayers.Projection("EPSG:4326")); ...
8
votes
3answers
895 views

When do I need to use a proxy with OpenLayers?

When exactly do I need to use a proxy with openlayers? I've done a lot of reading on this but can't seem to find a difinitive answer. Wondering if this is the route of my problems. For instance, if I ...
1
vote
0answers
38 views

Simple OpenLayers WFS [duplicate]

Possible Duplicate: How to add a simple WFS layer from GeoServer to OpenLayers map? I'm trying to simply add a WFS layer in OpenLayers. But completely stuck! Could someone please take a ...
3
votes
1answer
1k views

Wrong tiles generated in OpenLayers XYZ layer

I am creating a map in OpenLayers using Base layer as ESRI online map server. And second layer as our own esri map server serving the overlay. The Base layer shows correctly, but OpenLayer requests ...
5
votes
1answer
393 views

How to get started with map overlays and tiles

I have put quite some time into doing my own research and know in theory what i want to do and some of the steps involved in doing it but I wanted to put this question out to ensure i'm not going in ...
1
vote
1answer
508 views

Select independent objects using GEOJson on Openlayers

I'm working with OpenLayers and loading a couple of GEOJson files which works perfectly. Now I want to be able to select individual components of the GEOJson file. As for example if I have more than ...
1
vote
2answers
298 views

postgis, mapserver & openlayers: if data is not in table give an error / pop-up

I have created a website with postgis, mapserver & openlayers. On the website you can enter a postal code and then a drivetime isochroon is created. The problem now is that you can enter ...
3
votes
1answer
3k views

How to use OpenLayer.Transform?

I want to draw a rectangle. The coordinates are somewhere in northern Germany. But the rectangle shows up in the Near East? What am I doing wrong? var epsg900913 = new ...
1
vote
2answers
1k views

Problem displaying OpenLayers KML layer in IE

I am serving the following files from a the same directory on localhost: map.html OpenLayers.js output.kml map.html simply creates an OpenLayers map and displays the KML file as per the OpenLayers ...
3
votes
1answer
2k views

OpenLayers PanZoomBar css style

I need to use PanZoomBar in my application. var panZoomBar = new OpenLayers.Control.PanZoomBar(); map.addControl(panZoomBar); Also I need to overwrite the PanZoomBar css style. I overwrite the ...
3
votes
1answer
192 views

Can Openlayers plugin be faster?

Can the Openlayer QGIS plugin be modified to have better map loading performance? I use only google satellite/maps. Thanks.
2
votes
1answer
233 views

Need help adding OpenLayers to Geonode

I just installed GeoNode and really love the manner in which it helps me arrange the contents related to the map but I am not sure about adding OpenLayers to it. Well here is where I am faltering, ...
2
votes
1answer
612 views

How to have a layer with many images that scale?

I know that in OpenLayers you can add Features to a Vector Layer which each have image but then they will not scale (i.e. their size stays the same independent of the current zoom) or at least I do ...
5
votes
4answers
4k views

OpenLayers: How to create a rectangle?

I want to use OpenLayers to draw a simple rectangle (based on 4 coordinates) on my map. I would also like to fill the rectangle with a color. For example (EPSG:4326): 13.40, 52.50 13.50, 52.50 ...
1
vote
1answer
245 views

GeoServer WFS OpenLayers EditingPanel Problem

I'm trying to use OpenLayers to edit features of vector data served from a local geoserver. So far, I'm able to pull WMS and WFS layers using OpenLayers from the same geoserver. But now, I'd like ...
0
votes
1answer
200 views

coordinate projection

I'v got a detail map for an event as PDF an made an openlayers slippy map with Maptiler. I now need to place markers at the position of gps/gsm-trackers, which store their coordinate on a server. The ...
5
votes
2answers
498 views

Can overlays have different resolutions from the base layer?

I am trying to show a regional map on top of base map but without success. While debugging I noticed that my regional map has a different set of resolutions from the base. Is this allowed in ...
1
vote
2answers
3k views

Some Help to select some features from a vector layer

I have a vector layer (kml) that has some point with scientific name of plants and animals, some description of the place where the people saw them and the coordinates. Basically the table associated ...
2
votes
1answer
1k views

OpenLayers: add a listener to a single polygon

I want to add a listener to a single polygon. Currently, I am trying to add one that makes a polygon opaque when you click on it, but I should be able to add any general listener. OpenLayers.Layer has ...
0
votes
2answers
1k views

WFS save problem, 'read-only' exception

I am trying to save changes via WFS-T using GeoServer: var editLayer = new OpenLayers.Layer.Vector("Edit Layer", { visibility: false, strategies: [new OpenLayers.Strategy.BBOX(), ...
1
vote
1answer
453 views

Reprojecting non 4326 WMS image to spherical mercator

In OpenLayers, I'm trying to display a WMS overlay (EPSG:4269) from a server I don't have control over to a spherical mercator projection. Is there an equivalent to this: ...
1
vote
1answer
2k views

GeoExt (ExtJS + OpenLayers) not displaying Google Map

I've just started exploring GeoExt. It displays all the map controls, Google Logo and "Terms of Use". But the map is not rendered. I'm using firebug, and no JavaScript errors are generated. I'm using ...