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

learn more… | top users | synonyms

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
194 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
550 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
356 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
165 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
196 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
444 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
940 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
399 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
538 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
300 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 ...
4
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
194 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
241 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
629 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
5k 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
246 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
204 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
504 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
464 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 ...
2
votes
2answers
2k views

How to use GeoServer Web Processing Service (WPS) with OpenLayers and WFS?

I wanted to try creating WPS service in geoserver on web application. I wanted to know reference links or some help regarding using WPS on web.
1
vote
0answers
148 views

Why can't Android phones render this KML poly?

Our outage map works well in browsers and most mobile devices. The map can be found here: Test Outage Map However, on Android phones the perimeter polygon is rendered as black. Have tried changing ...
1
vote
1answer
802 views

select feature info on user defined polygon

Ok so I have a Openlayers App which is displaying few of the features and I now want to give the user the freedom to create a Box or polygon. All the features which are overlapped by this user defined ...
2
votes
0answers
208 views

How to install OpenLayers in drupal?

I have been trying this for a while without success. After installing the OpenLayers module in drupal 7.14 and trying to configure it i get the following error: Cannot establish a connection to the ...
2
votes
1answer
867 views

routing using openlayers and pgrouting

I would like to do a Dijkstra routing using pgrouting and openlayers. I have the downloaded osm data. I am following the workshop given in this link. But since I am very new to this I found it ...
3
votes
2answers
459 views

Unable to select Vector Layer

I am using the following example, to select a vector layer feature on click. The example demonstrates Highlighting and selecting the layer. I was able to successfully implement the Highlighting of the ...
1
vote
1answer
2k views

Select attributs of wms/wfs layers

I want to select polygons in wms/wfs layers (openlayes). I used the code of this example http://openlayers.org/dev/examples/getfeature-wfs.html . Then, when I select a polygon in my the layer, nothing ...
2
votes
3answers
2k views

ArcGIS REST server projection with OpenLayers

I'm adding an ArcGIS tile server to my openlayers tile server options via this javascript API. I have it displaying the map correctly, but it seems stretched out horizontally (I have a feeling the ...
4
votes
1answer
651 views

Authentication in geoserver with openlayers

Is there a way to authenticate in geoserver with a external webpage (made with asp.net and openlayers)? I have restricted the access data only by certain users, and I don't want to authenticate this ...
0
votes
1answer
2k views

Conversion from N,E to Lat/Long And Lat/Long to N,E will always be same? [closed]

I have an excel tool for the conversion of following lat/long: Lat: 23° 11’ 24.67503’’ S Long: 118° 46’ 6.15742’’ E , which gives me following N,E: Northing: 7,434,317.43 Easting: 680,991.69 But I ...
1
vote
1answer
992 views

Unable to create PopUp in OpenLayers

I am unable to create Popup in Openlayer. I have followed the examples and my code is also correct but I am not sure where am I going wrong. Here is the link. Here is my entire code, <!DOCTYPE ...
3
votes
1answer
3k views

How do I clip/mask a satellite photo to a polygon?

Given a shapefile composed of contiguous polygons, I'd like to clip (or mask) regions of satellite photo to the polygon outlines, and export each resulting raster in medium resolution for further ...
3
votes
1answer
859 views

Why does my WMS layer overlap the Google Maps v3 logo?

I'm using Google Maps v3 as a base layer and on top of that I create an overlay pointing to my WMS (streets and avenues). A few months ago all works fine, my WMS layer was not overlapping the Google ...
6
votes
1answer
2k views

What's the difference in using OpenLayers and Mapbox?

Hey guys I found this tilemill to develop WebGIS application using MapBox. I wanted to know how is it better than OpenLayers and if I have to develop which would be a better options to go for, as I ...
2
votes
1answer
4k views

Problems with features, popups and strategy with OpenLayers

I'm trying to create a website for vehicles localization on map, but i have some problem with openlayers. This is my first time with OL... What I would do is: - add and update features (my vehicles) ...
2
votes
2answers
430 views

onSelect sometimes firing before onUnselect

I have a map that displays satellite coverage zones. Some of these coverages overlap. I am using the SelectFeature functionality to fire off onSelect and onUnselect events. However, when moving ...
5
votes
1answer
6k views

Assign Icons to specific points dynamically in OpenLayers

I have a json file describing features on a map (routes, points etc) points include places of interest such as airport, harbor etc. Is there a way to assign icons to these points? example: have a ...
5
votes
0answers
403 views

Map is missing when I “export as image” via print composer [closed]

I have point data on a vector layer that prints accurately via print composer (when I "export as image"), however my map below either does not show up or shows up at an incorrect scale. I used ...
2
votes
1answer
3k views

Set Up WFS Service on MapServer and display in OpenLayers

I have used following mapfile to create the WFS service on Mapserver but struggling to display the service output using OpenLayers. Please suggest some links to use WFS service in openlayers. Thanks ...
1
vote
1answer
523 views

Zoom to country with geoserver and openlayers

I would like to preposition an OpenLayers map on a country. This is, when my page loads, the map should be positioned on the country with an appropriate zoom level. This should work for a (large) ...
3
votes
2answers
5k views

Is there a On Map Move event in OpenLayers?

In my OpenLayers web app I have registered an onmousemove event which performs certain functions. What I am really after though is a way to register and handle the user panning or zooming the map. ...