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

learn more… | top users | synonyms

3
votes
2answers
1k views

How to change the vertex style for editing?

When I use drag feature, then the circles on the polygon edge has the same style. For example, this OpenLayers site. I need to change it, I mean they need to be a different color. What is their ...
0
votes
1answer
254 views

How to cluster kml features in OpenLayers

Is it possible to cluster KML features in OpenLayers, and are there any samples? I can find separate samples for clusters and KML but nothing which handles both together. Thanks
4
votes
2answers
392 views

Why isn't valid geometry not valid in NetTopologySuite when close to poles?

I have a Polygon which crosses the south pole: Polygon in WKT: POLYGON((5.86826073458095 75.6638564054071,-16.5436836399021 63.2220742891438,-19.3664667294083 59.846221066959,-21.7009816876343 ...
0
votes
1answer
256 views

EPSG:3035 wms layer over google maps or OSM

Is it possible to put EPSG:3035 wms layer over google maps or OSM? I managed to do this, but my wms layer is placed differently then google maps or osm. I assume, google maps/osm uses different ...
1
vote
3answers
4k views

Show pop-up where user clicked in OpenLayers

How to change this example ( http://openlayers.org/dev/examples/select-feature-openpopup.html ) so that when the user clicks on a line (feature) pop-up display where the user clicked? A few days ...
1
vote
0answers
465 views

openlayers wms loaderror event get response text of

1.How do I get the http response text & error code from OpenLayers 2.12 WMS loaderror event ? 2.The WMS request returns returns http error code 500 with some response text, however, as per image ...
0
votes
1answer
214 views

GeoServer + OpenLayers: How can I sum points in a selected polygon in my WMS layer

I have two layers: one representing admin boundaries (multipolygon), and the other representing population (multipoint). I've made it possible to select a polygon to display. For the displayed ...
2
votes
3answers
636 views

Can we request new OpenLayers WMS image for an extent without moving the map?

Can we request new OpenLayers WMS image for an extent without moving the map center ? Reading OpenLayers code, OpenLayers move map center to new extent, and THEN do HTTP request to get the image. Is ...
1
vote
0answers
337 views

Using Google Maps with OpenLayers for some zoom levels

I've had a search on here to see if this has come up but I've not found anything, sorry if this is a duplicate. I'm trying to use the Google Maps layers with an OpenLayers site, but not for all zoom ...
1
vote
0answers
312 views

add description to a new polygon and save -> postgres + geoserver + openlayers -> wfs-t insert

actually it is possible to draw a new polygon with openlayers and save it over WFS-T-insert (geoserver wfs-t 1.1.0) in my postgres-db: var save = new OpenLayers.Control.Button({ title: "Save ...
1
vote
0answers
82 views

How can we display an animated output for watershed management in openlayers

Here i'm using Tomcat(7.0)+GeoServer(2.1.3)+Openlayers(2.11). How can we display an output like Flow of water for the forest watershed management application. I have to show the water flow Based ...
1
vote
1answer
686 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
173 views

Openlayers zoomToExtent pause until image is retrieved

Problem: layer transition effect: resize Do programmatic map.zoomToExtent() to somewhere OUTSIDE of current wms map bounds OpenLayers setCenters to target bounds and zooms in. While new wms image is ...
1
vote
1answer
337 views

Set attributes for newly created features in OpenLayers

I have a vector layer and label: "${title}" is used as one of style property for its rendering. Is it possible to set feature.attribute.title property before feature will be drawn by DrawFeature ...
11
votes
5answers
3k views

Free map service for private web applications

Background Looking to display a map (for internal use only) on a web page. The application must be able to add custom layers (without sending the data to the map service host): Municipal zones ...
6
votes
1answer
915 views

How import a shapefile on-the-fly and have GeoServer render it instantly?

I am tasked with adding one feature to an existing app. It was built with OpenLayers and GeoServer. The task is to import a shapefile on-the-fly and have GeoServer render it instantly. However, I ...
2
votes
1answer
470 views

How can i display markers from a database?

I'm an absolute GIS beginner and here is what i am trying to achieve. I am developing a web application that allows users to : type an address, and be displayed the corresponding slipping map select ...
1
vote
1answer
200 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
837 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 ...
1
vote
0answers
664 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
6k 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
193 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
423 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
874 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
295 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
854 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
466 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
889 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
2k 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
598 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
634 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
290 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
76 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
674 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
279 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
684 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
250 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
734 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
516 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
291 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
239 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 ...