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

learn more… | top users | synonyms

3
votes
2answers
2k views

How to implement feature search in OpenLayers with Geoserver?

I'm looking to build an application similar to this ArcGIS Server JS example which does a find task against a layer in the map. However i want to do this with OpenLayers, Geoserver and PostGIS. Some ...
5
votes
2answers
5k views

Will mousedown events fire with Touch events on OpenLayers mobile?

I can't get the mousedown event to fire on a mobile device when I click on a marker. I'm using openlayers 2.11 with TouchNavigation. The mousedown event fires just fine in Chrome on my Desktop. Are ...
3
votes
1answer
792 views

OpenLayers jQueryUI Draggable

I am using open layers to render a wms inside of a div tag. This is right out of the openlayers documentation. My WMS layer is rendering well. <div id="map"></div> Using the jquery UI ...
0
votes
2answers
1k views

GIS Web API - WFS-T Edit

My organization has a asset management application using Google Maps Java API as the GIS viewer. The application does some simple editing/querying on a kml file through html form elements. Instead ...
9
votes
3answers
1k views

Best way to animate radar data in openlayers

I have a project using OpenLayers which displays radar data on a map. The radar data itself is just a bunch of polygons each of which is filled with one of 6 possible colors. The goal is to animate ...
0
votes
1answer
668 views

Any example for Google like the bing OpenLayers/examples/bing-tiles-restrictedzoom.html?

I would like to restrict zoom levels in Open Layers for a Google Map. A bing example shows how to limit the extent of the bing tiles: var road3 = new OpenLayers.Layer.Bing({ name: "Road tiles ...
2
votes
2answers
309 views

How OpenStreetMap data layer works?

OSM map has a data layer and an information panel. How is it implemented? What is a type of the layer and URL of vector data source? How information panel works? Thanks for all!
1
vote
2answers
803 views

OpenLayers Circle not visible

I'm trying to draw a circle with OpenLayers with a Google Maps Layer. I'm able to transform a simple marker and have it draw at the correct location, but I can't figure out the circle. I'm trying to ...
11
votes
3answers
7k views

Google Maps layer copyright popup every time map updated / user input

I have used a Google Maps hybrid layer in Openlayers in my HTML5 iOS app for months now and it worked perfectly. Just recently they changed something because the 'Map data...' line at the bottom looks ...
3
votes
1answer
871 views

OpenLayers.Layer.Vector not working?

I'm struggling to get my vector layer working. The wfs works as I have tested it by creating a wfs layer and adding it to the map, now I'm trying to display a vector layer with the results of a search ...
4
votes
1answer
1k views

WFS-T: changes not saved on an OpenLayers map

I have written a script allowing to display a few WMS and WFS layers and I want to make my 2 WFS layers editable. I have all my controls and can draw / modify / drag / delete my features but, on one ...
1
vote
1answer
2k views

WFS layer not showing? [duplicate]

Possible Duplicate: How to add GeoServer wfs layer on OpenLayers? I'm really new to this and am making a map for a university project, I can't get my WFS layer to show up on my map, the WMS ...
2
votes
1answer
1k views

How to Edit Popup using Openlayers Text Layer?

I am creating a map with about 1000+ points using Openlayers. Currently when I click on one point's icon, the description for the point shows up in a popup, and to exit the popup I need to click on ...
2
votes
4answers
2k views

OpenLayers transform EPSG 27700 coordinate to Google 900913

Community, I'm currelty capturing my mouse click event and trying to transform the coordinates into Long Lat. I need to get at the Long Lat as strings so I can build a url and throw it at Google ...
4
votes
2answers
8k views

Display a WFS layer with OpenLayers

Good Morning! I have some troubles displaying a WFS layer with OpenLayers and hope someone here can give me a hint. Before moving on, I precise that I have already checked other posts, like here and ...
2
votes
1answer
1k views

How to choose between Markers and Features for drawing Openlayers objects?

Yesterday I was trying to create first mock-ups of my GPS tracker interface, and was exploring the available OpenLayers objects for drawing on a map. I began with simple task - placing a marker on a ...
4
votes
5answers
3k views

Openlayers renderer in IE8 - Labels not visible

I copied the source code of http://openlayers.org/dev/examples/vector-features-with-text.html. This url works just fine in IE8. I put the html page as it is in the webfolder in our network. I opened ...
4
votes
3answers
4k views

OpenLayers: Showing a WFS overlay on top of Google Maps

I have found similar questions asked previously, but I still fail to get a simple WFS point layer to work using OpenLayers and Google Maps. The original code I used was based on WFS polygon layers I ...
1
vote
1answer
317 views

Openlayers dynamically label polygon segments

My requirement is to show dynamic label on polygon feature's segments with some offeset. The label text should have the rank of each segment. If it is a square which starts at top left corner it will ...
5
votes
2answers
2k views

Using OpenLayers (with OpenStreetMaps) and PostGis for rendering data acquired from GPS tracking device?

I'm researching and planing to acquire data from GPS device and store them in postGIS database, then use geodjango to process/work them out and finally chart them on a map with OpenLayers. Will these ...
3
votes
1answer
4k views

Path to proxy.cgi for GeoServer is not accessible in browser

There have been several questions very similar to this asked already (including ones not involving GeoServer), but their solutions have not solved my problem. I am trying to use getFeatureInfo on my ...
5
votes
1answer
3k views

How to parse polygons from GML in OpenLayers?

I'm reading a GML file from an URL. This file contains polygons. I would like to draw the polygons on a map, where each should have a different color. But all examples I found on the web so far seemed ...
5
votes
2answers
5k views

How to change the WMS Background Color in OpenLayers?

I am using geoserver to serve up an image pyramid basemap. I want to have all areas outside of the data extent be black (instead of white). I have the map displayed inside of a div tag and changing ...
0
votes
2answers
415 views

Points appear at different location when using google map overlay

I have used vector point from database and also polygon country vectors from database.Points appear with in this country vectors but as I switch to google earth map as base layer the points at smaller ...
3
votes
1answer
583 views

How to save a Leaflet or OpenLayers map for opening later?

Can a webmap state be saved to a text file or something for restoring later? Like if I set up a map with a particular zoom and choose my layers and draw a polygon or two, can it be saved to a file and ...
0
votes
1answer
385 views

Google Map layer loads tiles even if this layer is disabled in OpenLayers

Sorry for cross posting I've asked this question in OL mailing list, but not get response yet. It is very important for me to resolve this issue. I've made a little example that reflect my problem. ...
1
vote
1answer
837 views

Capturing/overriding mousewheel zoom in openlayers

So I've created a map in openlayers and I am setting it up so that there are only certain zoom levels a user can see. I have the code created to handle forcing a user to the next acceptable zoom ...
2
votes
1answer
3k views

How to use Google Default Pan/Zoom controls in openlayers

I am using Google maps version 3 with Openlayers,My question is how do you use the default google control for Panning and Zooming and not the default controls Openlayers panning and zooming(The dark ...
0
votes
1answer
2k views

How to change events in the Oncomplete Drag function in Openlayers

below is code that works for Openlayers drag function: drag = new OpenLayers.Control.DragFeature(polygonLayer, { autoActivate: true, onComplete: function() {alert('Are you sure this is the ...
5
votes
2answers
2k views

How to disable polygon Label on the vertices (OpenLayers) in Edit Mode

I added the style on the polygon layer like so. var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']); // get a copy of the default style style.label = "1233456 ha" ...
0
votes
1answer
599 views

How to define a css class for a delete button in Openlayers?

Define a css class for delete button in openlayers? .olControlDelete { background-image: url("help.png"); background-repeat:no-repeat; background-attachment:fixed; ...
11
votes
3answers
3k views

How to merge two Polygons in OpenLayers?

I have two polygons. polygon1 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing1])) polygon2 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing2])) ...
2
votes
5answers
3k views

What causes this unexpectedly poor GeoServer/PostGIS/OpenLayers performance?

I am having a tough time making this map run smoothly (play around with it for a bit, you'll see). I have taken a few tips from OSGeo's Making Maps Fast document, but I think there's another issue ...
0
votes
2answers
10k views

Openlayers How would i get a hover label over my polygon

make a hover/mouseover label for a polygon in Openlayers? I made a map with draw, delete and drag polygon function. Now I need to make a hover mouseover for this. How to get a hover label for ...
0
votes
2answers
4k views

How to delete polygon in Openlayers

I would like to delete my polygon in Openlayers after i have drawn it. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> html, body, #map { ...
2
votes
2answers
1k views

WFS Layer does not refresh or give new data when map moved in openlayers

I am trying to add a WFS Layer with a BBOX strategy. When I change the extent I want GeoServer to return only the features in that extent. Here is the code I am using to add layer. wfs = new ...
2
votes
3answers
2k views

Openlayers get coordinates from polygon

please could someone help me and bless me with an example of how to get coordinates from a polygon in OpenLayers?
1
vote
1answer
3k views

Openlayers get coordinates of a circle vector after draw

I have made a openlayers map. I have made two features on the map. Navigate DRAW POLYGON I have made 40 sides to my polygon which turns out to be a circle. After I have drawn my circle I want to ...
3
votes
2answers
2k views

How to subtract Geometry Point Polygons in OpenLayers?

I have two json arrays, one for background polygon and one for other polygon. And from them, I got two polygon layers. backgroundLayer = new OpenLayers.Layer.Vector("Background Layer", {styleMap: ...
0
votes
1answer
1k views

Pgrouting OpenLayers all together

I'm new to all this I'm still trying to understand how things work.I have found a tutorial for pgrouting that shows the shortest path with Dijsktra or A* or shooting star at a map . I followed the ...
0
votes
2answers
393 views

Is there a way to get Openlayers' KML reader to deal with tessellation?

I'm trying to use OpenLayers' KML reader to display a KML file on a map, but the KML itself has LinearRings tha have a tessellate value of 1. I realize that this is used by google earth to snap the ...
4
votes
1answer
730 views

How to prepare SVG images for presentation in OpenLayers?

I have a collection of SVG vector images I need to display on a map, probably using OpenLayers/KML. Is there any way to convert a vector image from SVG to KML? Or would it make more sense just to use ...
2
votes
1answer
2k views

Help Setting up GeoServer Proxy with OpenLayers

I have a GeoServer WMS in Apache-Tomcat at http://localhost:8080 and a mod_wsgi app in standard Apache at http://localhost:80/myapp. My OpenLayers map is being hosted statically by the Apache-Tomcat ...
0
votes
2answers
951 views

GeoExt Tree Example Modification

The example provided in http://api.geoext.org/1.0/examples/tree.html shows all overlayes are checked but how do I make these overlayes unchecked while page is loaded?
2
votes
1answer
244 views

What are necessary GeoExt dependencies?

Is use of OpenLayers-2.11 ,GeoExt-1.1 and ext-4.0.7-gpl supported . I have only included ext-all.js in the script src. Should I include others too?
3
votes
1answer
4k views

GetFeatureInfo Request with GeoServer and OpenLayers.loadURL Not Working

I'm making a simple GetFeatureInfo request against a GeoServer WMS, but it returns empty responses. The request utility I'm using is OpenLayers.loadURL. The funny thing is, I can paste the generated ...
3
votes
1answer
974 views

How to deal with popups for clusters in openlayers?

I have an openlayers map which generates points from an array as vector features, with popups for these features, which works fine. Since I have so many points on this map, I have started working with ...
2
votes
1answer
282 views

Prevent formatting of label text in OpenLayers

I have a vector layer in OpenLayers containing a few point features. Each of my features have an attribute tag which contains a short text identifying the feature. Example: tag: '1e-1' Applied ...
0
votes
1answer
2k views

Building Floor Plan map using OpenLayers and json

How to show map of building floor plan using OpenLayers and json. moreover, i want to know that how to change features dynamically with zoom based from json files. Let's take example, Initial the ...
1
vote
2answers
611 views

config parser error raised by TileCache and Mapserver with OpenLayers

Just a forewarning, I will try to be as extensive with my question as possible. Due to a number of reasons why this might not be working, I have posted all sorts of portions of my debugging below. ...