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

learn more… | top users | synonyms

9
votes
6answers
3k views

Using ArcGIS Online Base Maps without Esri Software?

Since the end of January 2011: "ArcGIS Online map services are available at no cost regardless of use." - http://www.esri.com/software/arcgis/arcgisonline/standard-maps.html However, the ...
7
votes
2answers
2k views

How to trigger registered events in Openlayers?

I am building a web application where I need to compare 2 different maps of the same area, I need for the events on one map to automatically be triggered on the other map. I have so far: ...
3
votes
1answer
3k views

OpenLayers - is it possible for a feature to have both a single click and double click event?

I'm have an OpenLayer map with a single vector layer containing many features. I've been using SelectFeature to pop up some info when a feature is clicked, and that's working fine. However, I now want ...
3
votes
2answers
3k views

Creating a Polyline Buffer in OpenLayers

I was wondering if there was a way to create a buffer around a polyline feature in OpenLayers. I have created a tool that allows the user to draw a circle buffer zone of whatever size and style they ...
3
votes
1answer
1k views

Restrict CQL filter to an specific BBOX

I need to filter an OpenLayers layer using a CQL filter to an specific Bounding Box. Is it possible? Something like this isn't working: igh > 5000 AND ...
2
votes
2answers
1k views

How can i use ArcGIS server 10 mapservices in openlayers?

I'm new in openlayers . i'd like to use mapservice of ArcGIS server 10 in open layers.I search and found examples of using an ArcGIS Server 9.3 Rest API layer for openlayers. I found ...
2
votes
3answers
2k views

Render vectors from OSM data in POSTGIS database

I'm a newbie when it comes to mapping application. I had successfully loaded my OpenstreetMap data in a Postgresql/PostGIS database. Now my problem is how to render the vector data (the POI's, ways, ...
0
votes
0answers
64 views

Hardware configuration needed for geoserver to perform faster

I Build an application for enabling simple map layer switcher using EXT JS in this when user press refresh button( which present in the bottom of Layer Tab the application ) read all checked nodes ...
7
votes
6answers
2k views

The International Date Line wrap around

Using OpenLayers, I added a WFS layer (on GeoServer) with a filter that returns all features (black) that intersect my polygon (yellow) placed over some Latin American countries within certain dates. ...
6
votes
1answer
2k views

How to add KML data but from variable - not from url?

I have a working map that retrieves KML from a url, but now I need to get the KML data from a local variable instead. Is there support for this, and if so what is the syntax. Searched the api and ...
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. ...
4
votes
1answer
1k views

Does OpenLayers supports KML Ground Overlays?

I am not able to display Ground Overlays in a KML file with OpenLayers. Does OpenLayers supports KML Ground Overlays? If not, how would I proceed in writing my own code or plugin for OpenLayers so ...
3
votes
2answers
669 views

Openlayers using Google Maps as base layer: possible to zoom out farther than max extent?

See attached picture. This is how it is when the page loads. I'm currently using map.zoomToMaxExtent(); Everything is working pretty well but I'd like to zoom out more/see the whole world using ...
3
votes
3answers
6k views

How to dynamically update a KML layer in OpenLayers 2.10?

Arguably, this is a easy question for you guys GIS expert. Here is the question, how to outsource a dynamic KML file using JavaScript in OpenLayers. I want to refresh every 7 seconds. Below are ...
2
votes
1answer
295 views

How to change the color of the layer after searching

My task is searching a single house from a layer and then zoom to the center. I did this part but i can't clearly identify this house. I am try to do this by adding a fillcolor to the searched area. ...
2
votes
2answers
1k views

OpenLayers: how to save added point in server side

I'm new in OpenLayers. I have simple application, which use a picture as map, on this picture users can add, move, or delte point, and then save. I have implemented adding, moving, deleting ...
2
votes
1answer
2k views

How to edit feature attributes with openlayers?

I want to edit object's attributes on WFS layer. I see this example http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique_with_group_wfs.html but popup is horrible. I want to use ...
2
votes
1answer
1k views

OpenLayers: Feature edit handles not appearing when addUniqueValueRules applied

I have been pulling my hair out over this issue and am now wondering if it is a bug rather than something I am doing wrong. The Problem: I have a vector layer that users can edit. Each feature on the ...
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 ...
1
vote
0answers
346 views

MapFish PDF: Geoserver WMS layers not generated as tree structure

I am using the mapfish printing module in my web map application.In that everything is working fine but layers not generated as tree structure in output PDF file and "ODC_Graphics_Data" wms layer not ...
1
vote
2answers
399 views

How to edit using a WFS service, without showing it on the map in OpenLayers?

I have a service with about thousand points. I wish to enable the user to edit the attributes of the features. Since there are so many points, I don't want to display them as a vector layer (using ...
1
vote
1answer
945 views

Problems using geoserver and postgis to perform wfs transaction?

I have been following the tutorial for transaction. I am using apache webserver and jetty powered geoserver for hosting and using proxy.cgi file for bypassing XHR requests. as described in tutorial ...
0
votes
1answer
1k views

How to add google satellite as a base layer for a geoserver generated openlayers page

İ have added a shape file to geoserver and generate a wms page. I want to add google satellite as a base layer but i can't do it. would you please give me a hint how to add google satellite as a base ...
4
votes
2answers
4k 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 : ...
4
votes
1answer
570 views

affine transformation on geotiff

I have a bunch of geotiffs stored in a PostGIS DB that i am mounting on my OpenLayers map. They all have the geoTransform information in them. I just want to know how i can mount them on my ...
3
votes
2answers
4k views

How to connect OpenLayers to PostGIS data?

I have read in OpenLayers how to load KML, GeoJSON etc. vector files in OpenLayers. But how can I connect to PostGIS data. If not, why should I upload my data to PostGIS then instead of directly ...
3
votes
1answer
2k views

Problems adding KML layer in OpenLayers

I'm stuggling to add a KML layer to a simple test OpenLayers map - no errors are shown, but the KML layer does not display on the map. I've tried multiple samples including the Sundials on a ...
3
votes
2answers
5k views

Use OpenLayers WMSGetFeatureInfo on Mapserver Layer?

I'm able to use OpenLayers' OpenLayers.Layer.Mapserver declaration to generate a raster from GRIB data. I've read in the MapServer docs and on forums that it should be possible to get point ...
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 ...
2
votes
0answers
225 views

Problems printing OpenLayers Pluggin Maps To Scale

It the print composer I can print all maps to scale and satisfactory. However, when I add the OpenLayer, usually Bing Aerial, to the project I cannot print it out to scale. I click the scale box, ...
2
votes
3answers
3k views

Displaying Google Maps and OpenStreetMap map in Java?

Is there any Java API that is like OpenLayers ? I would like to display google Maps and Openlayers Maps in a java application
2
votes
2answers
1k views

How to skip drag event to stop a feature being dragged

I am new to OpenLayers and I'm trying to drag markers and skip some markers from being dragged, I've tried dragFeature.deactivate(); it will deactivate entire features please help me. Please check ...
2
votes
1answer
757 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 ...
2
votes
1answer
611 views

Syntax of WFS request in OpenLayers

I am in need of the correct syntax for loading WFS layer using OpenLayers. I have gone through many examples on the OpenLayers site and other examples, but can't figure out how to use the necessary ...
2
votes
1answer
2k 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 ...
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 ...
2
votes
4answers
6k views

How to use Google Maps V3 Geocode with Openlayers

How to use Google Maps V3 Geocode with Openlayers. Below is my code but the function does not execute when I try to integrate it with Openlayers. This works with my original google v3 file. Below is 2 ...
2
votes
2answers
4k views

Access-Control-Allow-Origin error in web map

I am having trouble getting a WFS layer working using Geoserver, OpenLayers and GeoExt. I get the following error: XMLHttpRequest cannot load http://10.0.0.155/geoserver/wfs. Origin ...
1
vote
1answer
314 views

How to insert a list of parameters from a parametric view in OpenLayers?

After successfully (with the precious help of members from stackexchange) creating a Geoserver parametric view that works as it should, now i'm facing another problem: How to pass a list of parameters ...
1
vote
2answers
538 views

OpenLayers.Class with OpenLayers.Control.GetFeature

I'm wondering if someone could point me in the right direction to force the BBOX of OpenLayers.Control.GetFeature to be always in long/lat coordinates. I'm trying to get this with OpenLayers.Class, so ...
1
vote
1answer
1k views

Modify WFS with OpenLayers

I want to edit object on WFS layer but have one problem. I use OpenLayers.Control.ModifyFeature(myVecLayer) to editing.By the logic i do this. Press button and create WFS layer with chosen object ...
1
vote
1answer
684 views

GeoServer WPS Aggregation Functions Example

The scenario: I want to present a user with names of polygons from a layer in GeoServer. I then display the polygon(s) whose name(s) the user selected. What I've done: I have a search box, which ...
1
vote
1answer
556 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 ...
0
votes
2answers
394 views

Use GetFeatureInfo with OpenLayers and a Bounding Polygon

I want to be able to draw a bounding polygon and have my MapServer WMS layer return every feature within that bounding box. I have it working for a single point, but I would like for the query to ...
0
votes
1answer
257 views

How to convert drawn vector feature from EPSG:900913 to EPSG:4326

My script allows you to drawn shapes on an openlayers map, and then to get the WKT information from that shape, except the returned coordinates are in 900913 and i need them to be in lat/lon. thanks
0
votes
3answers
617 views

KML attribute data on onload of html page using openlayers

How to get KML attribute data on onload of html page using openlayers. This is kml file: click here to get kml file Any help is appreciated. Thanks in advance.
0
votes
3answers
2k views

How to store an image in PostgreSQL and display it in an openlayers popup?

This is question regarding storing of image in PostgreSQL and display in openlayers popup through geoserver(using wms service). PostgreSQL is installed in my virtual machine. I tried to store image ...
0
votes
1answer
1k views

openlayers- WFS- Cross-domain problem

I got the typical cross-domain problem when access to WFS layer by using openlayers, XMLHttpRequest cannot load http://XXXX/geoserver/ows?service=WFS. Origin http://XXXX is not allowed by ...
19
votes
6answers
3k views

Creating a small web-mapping/map-tiling service

I am looking for a small-scale and easy way to present one or more polygon shapefiles online (on a municipal website without any existing map-server infrastructure, to be precise). Right now, I'm ...
16
votes
4answers
681 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 ...