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

learn more… | top users | synonyms

1
vote
1answer
206 views

Is it possible to write a server to handle OpenLayers.Protocol.HTTP({url: “/cgi-bin/fs/workspace/” …}) which was done by FeatureServer

I am a newbie to geoserver and openlayers. Recently, I am stuck in saving changes(drawing polygons and points) of the feature vectors to a local(geoserver/www/...) .json file. The tutorial I ...
4
votes
3answers
1k views

Export Map to GeoPDF

I am using GeoServer/OpenLayers to build a map website. One of things I want to do is to export a map to GeoPDF. It's not an export from desktop software. More specifically, map tiles are added as ...
0
votes
1answer
928 views

getting “TypeError :bounds is null” in firebug

i've got something error when I run my code in firebug.. here this code : <script type="text/javascript" src="OpenLayers.js"></script> <?php ...
2
votes
0answers
707 views

OpenLayers.Popup.FramedCloud won't autosize

I don't see why this shouldn't work, but it doesn't.. :P var popuphtml=""; $.each(persons.persons,function(i,item){ if(item.in_loc == feature.attributes['locid'].substring(8)){ ...
3
votes
4answers
1k views

can't read attribute from map file (.kml) using openlayers

I want to create thematic maps using openlayer with kml map. but when i run the code, color and label thematic maps of the polygon can't show up. instead writing out undefined. what's the cause? are ...
5
votes
2answers
7k views

custom Layer Switcher style in openlayers

I use this example to customized my layer switcher in openlayers.But I want to change the position,width and height of layer switcher.I know it relates to CSS.I change some numbers to get some ...
1
vote
1answer
199 views

How show some fields only when using WMSGetFeatureInfo?

How to show some important field only when using WMSGetFeatureInfo.I use this example. When I click on maps it show all the fields of attribute table.What part should I modify in above mentioned code. ...
2
votes
1answer
473 views

ArcGIS REST export map features as geoJSON

Is it possible to export the features from a map as geoJSON using an ArcGIS REST service? I'm trying to make a vector layer in OpenLayers based on the output from the map's present view based on a ...
1
vote
2answers
940 views

Prevent layer from WMSGetFeatureInfo request on openlayers web map

I use this example code get feature info from my openlayers web map.I add 4 layers to map including raster image as base map. But i don't need feature info from that raster layer.But when clicking on ...
0
votes
2answers
314 views

How to retrieve a single polygon from a multipolygon layer in GeoServer

I have a multipolygon layer in GeoServer. The layer represents states within a country. I want to enable a user to search for a specific state, and then only the selected state to be displayed on the ...
4
votes
2answers
922 views

Openlayers - Vector layer polygon doesn't move in-synch with Google V3 baselayers

When a polygon is drawn on the map and the map is dragged, the position of the polygon relative to the GM V3 base changes. function init() { var map = new OpenLayers.Map('map'); var gsat = ...
0
votes
1answer
526 views

How to save new drawing feature to my own WorldImage layer(only base layer)?

Recently, I have been learning geoserver and openlayers to construct my own indoor map. As I am going to build a indoor wifi location system so I need to create the map. I use Raster Data Sources -- ...
1
vote
2answers
2k views

how to create thematic map using OpenLayers and Geoserver?

I am still a beginner in learning GeoServer and OpenLayers. I tried to create thematic maps of the map that I publish in GeoServer. I used openlayer to show the map in web browser. When i want to ...
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
944 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
710 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
748 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
301 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
710 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
788 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
563 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
524 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
349 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
163 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
439 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
900 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
395 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
510 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 ...