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

learn more… | top users | synonyms

2
votes
1answer
1k views

Why would Openlayers always render over other divs?

I'm having trouble getting an Openlayers div to allow other divs to appear above it. Having tried the solution proposed here as well as the more classy-looking one here, I haven't had any luck yet. ...
1
vote
0answers
135 views

Geoserver Custom CRS IAU_Moon_2000

I am trying to setup a custom basemap using a GTiff in the IAU's Moon2000 projection (30100 or 30101). The basemap image was originally created through gdal_merge and gdalinfo returns the expected, ...
3
votes
2answers
560 views

What's a good way to display a custom raster basefile in Openlayers

I have a land cover raster that I'd like to display as part of an Openlayers based application. I'm able to load the raster directly as a PNG but my Openlayers application becomes VERY slow. I think ...
1
vote
0answers
158 views

How to add column “EDGE” in pgRouting?

I am a newbie in PostGis and pgRouting. I have installed and configured both on my windows PC, following FOSS4G tutorial. I am able to see the result in browser, using GeoServer and OpenLayers. ...
3
votes
1answer
676 views

How to get an GeoExt LegendPanel with image/png instead of image/gif?

I am using a GeoExt.LegendPanel to show legends for my various layers in OpenLayers. The GeoExt.WMSLegend supports configuring which image format to use, but the LegendPanel does not utilize this ...
11
votes
3answers
3k views

Open source alternatives to Google's StreetView engine?

I am looking to create an open source javascript app using either Leaflet or OpenLayers. Is there any way to implement panoramic views (similar to Google's StreetView) into either of these, or any ...
1
vote
2answers
151 views

Using data from Arcview on OpenLayers

I'm newbie on this. I got some GIS data on Arcview but I want to develop a Web based GIS, I've found that OpenLayers is pretty easy to me because I'm Javascript/jQuery developer, the issue is that I ...
6
votes
1answer
1k views

Add a OpenStreetMaps road data layer on Google Maps API v3

I've successfully embedded a Google Maps API v3 map on my site, and added OpenStreetMaps (OSM) as the base layer. Is it possible to use Google's tiles as the base layer, and then overlay street data ...
6
votes
3answers
3k views

Difficulty to display WMS and Googlemaps layers using Geoext and ext

i have the following code on my html file: // World Geodetic System 1984 projection var WGS84 = new OpenLayers.Projection("EPSG:4326"); // WGS84 Google Mercator projection var ...
10
votes
2answers
9k views

Remove/Delete a feature from OpenLayers vector layer

I have an OpenLayers layer with several vectors on it. I know the OpenLayers Feature ID (e.g. OpenLayers.Feature.Vector_241) and I would like to know how to remove this feature and only this feature? ...
4
votes
1answer
2k views

OpenLayers map initialised but not displaying

I am using OpenLayers with Google maps. I have created my map object successfully - there are no errors raised and console.log(map) shows that it is indeed an OpenLayers class - but nothing is showing ...
1
vote
1answer
359 views

Openlayers: Check the map content and tell if the feature exists in the map bound

In my map there are numberof layers. I want my custom legends to show when the related layer feature is visible in the current map view. I am able to turn on/off the display of the legend according to ...
1
vote
2answers
2k views

How can I get the values returned by an OpenLayers bounds object in Longitude / Latitude format?

I've created a map and added a layer using the Open Layers library: map = new OpenLayers.Map('map'); var gphy = new OpenLayers.Layer.Google("Google Physical", {type: G_PHYSICAL_MAP}); ...
8
votes
3answers
4k views

OpenLayers With StreetView Overlay

Im trying to add StreetView functionality to my OpenLayers web app, and would like to add the overlay showing StreetView availability to the map itself. I have seen an example of it being done ...
2
votes
1answer
324 views

OpenLayers deploy: what libs does selectFeature rely on?

I am trying to minimize my code by modifying OpenLayers deploy configuration file in order to reduce its load time. However, It seems that I can't include all necessary libs that ...
4
votes
0answers
632 views

OpenLayers: WFS request to GeoServer to retrieve “name” & “featureNS”

Using WFSGetCapabilities I sent a GetCapabilities request to GeoServer. From the result of WFSGetCapabilities().read(), I can loop each featureType and retrieve some basic info(e.g., name, title, ...
3
votes
1answer
2k views

How to draw a line in OpenLayers?

I would like to draw a line between few GPS coordination. I tried to use OpenLayers.Geometry.LineString for that, but it uses a OpenLayers.Geometry.Point. Is there any function in OpenLayers that ...
3
votes
2answers
1k views

OpenLayers + Geoserver: how to dynamically retrieve the “geometryName” of a feature layer in GeoServer

I am trying to get the list of feature layers on GeoServer and then user can add layers into map at anytime they want. my question is: when using OpenLayers.Protocol.WFS loading a layer, is ...
2
votes
4answers
2k views

Retrieving tiles in EPSG:4326 format. Is there a service for that like CloudMade?

Is there a service that can provide custom tiles in the EPSG:4326 projection? I've looked at Cloudmade and it would be the ideal solution but their tiles are using Spherical Mercator. Basically the ...
2
votes
1answer
352 views

OpenLayers: failed to create a Ext.list that wraps a Openlayers.request.Get function

I am using Sencha Touch + OpenLayers to develop a demo app. One feature is to get the catalog of feature data in GeoServer. I want to use Ext.List to display the name of feature layers. I tried ...
3
votes
2answers
2k views

Printing maps from OpenLayers with a Google Maps base layer

I need to implement an automatic pdf report generator on a web site. In the generated pdf file I need to insert images from maps extracted from OpenLayers with a Google Map base layer. On top of ...
5
votes
1answer
665 views

How to create a balloon for a dynamic KML file?

I want to create a balloon for a KML file that dynamically moves. The example that I am working on is sundials.html. Let's say that the KML is moving. How we would get the balloon to move as well? ...
1
vote
1answer
844 views

Toggling feature visibility in Openlayers + GeoExt

I'm setting up a small web mapping application using PostGIS + mod_tile + FeatureServer + OpenLayers + GeoExt, each of which I'm learning as I go. In addition to the base layer, I've pulled in a few ...
2
votes
1answer
970 views

What's wrong with OpenLayers code?

I've just tried some simple code from example: $(document).ready(function() { var map = OpenLayers.Map('map-content', {}); var wms_serever_map = OpenLayers.Layer.WMS('Base l', ...
6
votes
1answer
2k views

How to select multiple Features from multiple Layers in OpenLayers?

Is there a way to select multiple features from multiple vector layers by using clickTolerance in click? I checked the documents of getFeature control and selectFeature control, seems not work in ...
2
votes
2answers
3k views

WFS via Geoserver - Proxy or MapDocument Issues?

I struggle getting a WFS overlay from geoserver to work. I think I meet all the requirements for the WFS to be displayed in my map, but the request seems to get stuck somewhere... FireBug gives the ...
5
votes
2answers
678 views

OpenLayers for Android: why does a popup panel show up twice?

I use Moto Xoom (Android V3.0 touch pad) browse the example "OpenLayers with Sencha Touch", when I click button "LayerList", the associated popup panel doesn't show up smoothly. it will show once, ...
3
votes
2answers
1k views

Is there a Web app for building GeoExt tree configurations?

I have a GeoExt application and looking for approaches for building tree configuration (in JSON format). Now tree configuration is made manually and looks like: var treeConfig = new ...
5
votes
2answers
510 views

How to check whether a layer is vector or not in OpenLayers?

am not sure whether this is a stupid question or not.. but I am wondering how to dynamically check whether a layer object belongs to OpenLayers.Layer.Vector class. Thanks for any replies!
2
votes
1answer
369 views

How to generate a grid of horizontal equal-area rectangles in a Mercator projection?

I'm new to GIS so pardon my ignorance and bear with me. I'm generating a grid relative to a LonLat point. To make the cells all equal area, I'm creating it in 2163 projection. The problem is that when ...
2
votes
3answers
4k views

How do I include proj4js in openlayers?

in my Openlayers app, since the base map projection is not epsg900913 or 4326, I need to include proj4js in order to use geolocation feature. but i got such a error notice: GET ...
4
votes
1answer
2k views

How to use geoserver to display data on hosted website

I am using geoserver to display GIS data on my hosted website when geoserver is running I can see my data on my website in both firefox and Internet explorer but only on my laptop where I have ...
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 ...
3
votes
1answer
445 views

How to solve Projection Problem at client side

I want to discuss a scenario here to all. I have developed a Web mapping application in OpenLayers and GeoServer. The customer give us shapefiles with native projection SWREFF99_1330 (EPSG:3008). ...
3
votes
2answers
2k views

How to label a dynamic KML file in OpenLayers?

How can I display labels for features in a KML file on an OpenLayers map. I was thinking of using popup messages, but labels are more attractive and eye-catching. I want to replicate the labeling ...
2
votes
1answer
171 views

Dynamic ArcServer Layer

I have the following setup: ArcGIS Server + ArcSDE on top of Oracle RAC. I created a view merging some data that is in Oracle and ArcSDE. In ArcMap it all works just fine. Whenever a new location is ...
6
votes
4answers
6k views

How to reproject base layers in OpenLayers?

The issue is: I have vector/topo/image tiled maps for some places in north america which were published as ArcGIS Server REST service. These maps (A) are based in EPSG26912 projection. Now I wanna ...
9
votes
3answers
440 views

In what coordinate systems do true circles appear round?

Please excuse what is probably an obvious question from a relative newB to GIS -- this seems like it should be a snap. I've been developing in Gmaps for awhile and am switching to OpenLayers but am ...
1
vote
2answers
626 views

How to work with Geoserver and OpenLayers?

I am new to Geoserver and am a bit lost at the moment. I have added shapefiles to Geoserver and created a layer containing all the shapefiles that I would like to display on my externally hosted ...
3
votes
1answer
2k views

How to toggle a control in OpenLayers

I have a added Graticule control in my OpenLayers map. Now I want to toggle this using a control button. This what I have written: function init() { graticuleCtl = new ...
6
votes
1answer
814 views

How to preserve topology while editing polygons in OpenLayers?

I’m facing this issue: I have a chloropleth map based on a set of polygons with some data. Using WFS-T (postgis, geoserver, openlayers) I am able to edit the geometry of the polygons. This works fine. ...
2
votes
1answer
345 views

Is it possible to add custom SQL-based layers in GeoServer?

I would like to add a layer to GeoServer that builds its features from an SQL query executed against a PostGIS database (something like a PostGIS layer in QGIS, but customized with additional SQL ...
5
votes
2answers
1k views

Why does GeoServer/OpenLayers show only points from my PostGIS?

I am reading the PostGIS in Action book now and I have a problem with one example: I have created a table: CREATE TABLE my_geometries (id serial NOT NULL PRIMARY KEY, name varchar(20)); I have ...
1
vote
1answer
513 views

How to segmentize/sample a LineString using geodjango (postgis/geos) and/or openlayers?

I'm trying to sample points along a linestring. The goal is to have the distance between 2 consecutive points to be at most X (eg. 50m). I'm drawing linestring in openlayers and sending it to a ...
0
votes
1answer
1k views

Problem with the layernode.js, GeoExt Application

Attached is the code i have written on the html file. When i run it on the mozilla firefox browser i get the following error from firebug: Most of the code has been taken from an existing ...
8
votes
2answers
1k views

Whats better for selecting? WMS or WFS

I need to select from a layer(s) and I am wondering what way I should serve the layer. The requirements are that I need to be able to select multiple features at a time by drawing a box or polygon. ...
3
votes
2answers
1k views

Open Layers Zoom On map single-click

I am trying to zoom into a location on a single click. How can I zoom towards the point on single click? I have tried using OpenLayers.Control.ZoomIn and adding a click handler, but for some reason ...
3
votes
2answers
3k views

OpenLayers: Combine multiple OGC filters

I have two OGC filters client side: <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyIsEqualTo matchCase="true"> ...
3
votes
3answers
5k 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 ...
1
vote
1answer
2k views

WMS Request Returns nothing with Geoserver

I'm having trouble with a select feature example in Geoserver and open layers. For some reason the request returns nothing. Here's the stripped down version that produces this: I have a small wms ...