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

learn more… | top users | synonyms

1
vote
0answers
106 views

How to make labels appear in Geoserver? (WMS) [duplicate]

Possible Duplicate: How to avoid duplicate labels on each tile? I have an Annotation Shapefile. I added it into GeoServer as point Shapefile and set its label with the help of the style ...
1
vote
1answer
2k views

How can I add an infowindow to an OpenLayers GeoJSON layer?

In my OpenLayers script I refer to an geojson layer. Is it possible to add an info window?If yes, how can I create this. Script is as follows: var lon = 5, lat = 52, zoom = 7, epsg4326 = ...
-1
votes
1answer
142 views

pure OpenLayer is good or GeoExt [closed]

pure OpenLayer is good or GeoExt WHich have more options w.r.t GIS client-side
2
votes
1answer
462 views

Why are the icons in openlayers edit tool bar missing?

I have an application using Geoserver 2.2, Openlayers 2.12 and Postgresql. I have been following the tutorial at: ...
1
vote
1answer
175 views

Allow user to add notes to an OpenLayers map

I am looking for any ideas here. I want a user to be able to interact with a map. I know I can use HTML5 canvas to allow the user to draw over a map. But what about if I want something simpler? For ...
2
votes
1answer
493 views

What is the easiest way to let a user upload overlayers to openlayers (Geoserver/Mapserver)?

I need to let a user upload vector layers he created with QGIS or MapInfo professional to my website (using OpenLayers as client and either Geoserver or Mapserver as WMS). What will be the easiest ...
1
vote
2answers
653 views

MapServer and IIS Express configuration

I hope you can help me with the following: We need to create a stand alone asp.net based site that will display some maps. We are using IIS Express to run a site and now we need to add the map server ...
1
vote
0answers
152 views

What is the best way to create polygons on a map and download files associated with the polygon?

My client wants to build a tourist site and for that he wants a backoffice for the map and the ability to draw polygons on the map (that user can see). When the user clicks on a polygon, he gets a ...
1
vote
2answers
798 views

WFS layer not visible in openlayers

I'm trying to add a WFS layer in openlayers and it's not working. Can anyone point me in the right direction. The data is stored in postgis and I've added it to geoserver. I am aware that I'm using ...
2
votes
0answers
472 views

Openlayers text layer is not working

I am trying to load markers from a text file using openlayers text layer, but no marker is shown, text file and icons are in same directory. However I am able to show markers using marker layer. My ...
2
votes
1answer
459 views

OpenLayers Vector Layer not aligned with Google Oblique Imagery

Check http://jsfiddle.net/vasile/BKvcX/6/ In the first map, the yellow line should follow the street curve, however if you pan the map up-down, you clearly see the misalignment due to what ? ...
3
votes
2answers
178 views

Need advise on map site design (When to wms/kml)

I'm building a web system from scratch (based on openlayers). All layers in map will be my own (raster and vectors). I want to show polygons/points on map and when user click on them he gets info or ...
5
votes
1answer
339 views

Can I use QGIS plugins in PyQGIS as a stand alone script without iface?

Can I use a qgis plugin especially (openlayers plugin) in stand alone pyqgis script? I don't find examples, just code using iface but that cannot used in stand alone script.
1
vote
0answers
57 views

How to extract numbers from each vectors?

I'm trying to create custom legend for a layer where OpenLayers.Rule objects are created dynamically and added to a layer. new OpenLayers.Rule({ symbolizer: { ...
5
votes
2answers
941 views

OpenLayers XYZ Unable to Load Local Tiles

I have some local tiles that were generated from OpenStreetMaps using Maperitive. I've tried going through the docs and tests but the map is not loading. I'm not getting any errors in chrome's js ...
1
vote
1answer
140 views

WMSgetFeatureInfo problem

I want to get attributes of feature using getFeatureInfo: if(sss==null){ if (sld==null){ sld= new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://localhost:8080/geoserver/wms', ...
2
votes
2answers
2k 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 ...
1
vote
1answer
313 views

How to use SLD Select control?

I have a WMS layer and i want to get fid of polygon in it by click it. How can i do it? I know that i can create WFS layer from this WMS and get feature attributes from layer or store. But its ...
1
vote
0answers
2k views

Why does map click listener not work with touch?

I deleted this question which I posted a few days ago, thinking that I would be able to solve it. But after struggling for some time, I think I really need some help. The problem is this: I am testing ...
2
votes
0answers
131 views

Projection declaration in dojox.geo.openlayers possible?

I am trying to integrate some maps of my own into the dojox charting demo and I had success in exporting a shapefile (externally, i.e. with my own parser) to the dojo JSON map format. The map is in ...
1
vote
1answer
800 views

Does leaflet support wms tile layers in applications/openlayers formats?

I am trying to create a tilelayer.wms overlay on top of a wfs base map and I wasn't sure whether leaflet allows the applications/openlayers type of format which I served up from geoserver or only ...
1
vote
1answer
93 views

Filtering (non-WFS) features in OpenLayers

Say I have a vector layer with a couple hundred features, and I just want to operate on a filtered subset of those features, such as those that have a State attribute of "OR". Am I reading the OL ...
2
votes
1answer
235 views

Silverlight API like OpenLayers?

Is there any Silverlight based WebGIS API like OpenLayers?
2
votes
2answers
740 views

Openlayers vector layer markers disappear near dateline

See demonstration of the bug here: http://jsfiddle.net/3ECSb/4/ I have seen and solved similar problems before with OpenLayers but the usual "three world" concept isn't fixing it this time so I'm ...
2
votes
1answer
2k views

Openlayers - Get extent of WFS vector layer and zoom to that extent when map

I would like to do the following: 1) While loading an OpenLayers map object get the lat/long Bounding Box of a WFS vector layer served from GeoServer. 2) Use the extent from the WFS vector layer to ...
0
votes
1answer
236 views

Looking for free sdk/lib/framework for UI for openlayers app

I'm looking for free UI lib/sdk/framework to make openlayers app that I can have the map in one panel , the layer control in other panel and maybe hovering tool bar (instead of putting buttons on the ...
11
votes
2answers
3k views

OpenLayers 2.12 and http basic authentication woes

I am trying to use OpenLayers 2.12 to display WMS layers from a server which has HTTP Basic Authentication enabled. I have tried to handle the authentication by putting the username and password in ...
2
votes
1answer
277 views

How to not overlap cluster popups with FeaturePopups control?

FeaturePopups control resolve the problem of cluster popups, but there is a small design problem in my opinion: the event popup have the same anchor as the cluster popup and they partial or total ...
2
votes
3answers
5k 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
203 views

Remove duplicate names in FeaturePopups cluster tooltips and popups

I am using FeaturePopups control to show tooltips and popups for clusters. I have features connected (ends of road segments) with the same names. Is it possible to remove them from tooltips and ...
1
vote
1answer
245 views

Problem reprojecting KML in EPSG:2039 Map - OpenLayers 2.12 + proj4js

I have KML files (EPSG:4326) and a background map I made using EPSG:2039 projection (mandatory). When I try reprojecting the KMLs to show in EPSG:2039 I don't succeed and still they don't appear on ...
1
vote
3answers
884 views

How do I make OpenLayers.Class.create() work in Openlayers 2.12?

At version 2.12 some functionality has been changed and moved to the "deprecated.js" I have the following code which I want to be able to run without "deprecated.js". how can I convert it ? ...
2
votes
1answer
587 views

Why does destroying a popup cause a “this.events is null” error?

I am trying to create dynamically generated popups in OpenLayers with a mouseover event. According to the documentation, it is recommended that the popups be destroyed after use to avoid memory leaks. ...
2
votes
2answers
797 views

Openlayers - Get Type of Layer

Is there a way to get the type of all the layers in an OpenLayer maps object? What I am trying to do is iterate over all the layers in my OpenLayers map object and populate a dropdown list with the ...
2
votes
0answers
52 views

Is it possible to have transition between switching base layers

I use OpenLayers to display several maps. While transitioning between Google Map layers, the new layer is superimposed onto the old one. But for OpenStreetMaps, there is this empty void in between ...
0
votes
2answers
410 views

OpenLayers - Problems With WPSClient

I am trying to incorporate a WPS running in GeoServer into an OpenLayers client. I am using this simple example as my reference. Using either a local install of OpenLayers.js (v 2.12), or the ...
1
vote
1answer
240 views

openlayers load local gml

I'm trying to load a simple gml file with openlayers, but it doesn't load. Pretty sure it's a simple issue, but I figure out what's wrong. Thanks in advance, Pedro var meu = new ...
4
votes
3answers
5k views

openlayers toggle visibility of layer

EDIT: I have cross-posted this to Drupal Answers. I hope this isn't too much against the rules --- I think the answer will be something to do with both Drupal and OpenLayers. ...
2
votes
0answers
931 views

How to add multiple nested node in GeoExt

I have following codes, but i want to add severel parent>child>chill>child>child (4 level inside) nodes with all check box options (for user choice) in the tree panel, in fact sum of all these (parent ...
3
votes
1answer
167 views

How do I allow users to download a GeoTiff on my web map

I am hoping to get help with what I need to do in order to allow a user on my OpenLayers map to download a portion of a GeoTiff they are viewing through a WMS. The data is hosted through GeoServer. I ...
3
votes
1answer
211 views

OpenLayers request tiles out of range

OpenLayers map is requesting tiles out of range and all the map is pink. If I inspect single tile, the address is next: /Tiles/15/16384/16384.png But the folder with generated tiles does not ...
2
votes
1answer
353 views

Floating Image Layer in OpenLayers

I'm making a Map Visualization which requires an overlay that shows the light/dark patterns across the planet (like this). I accomplished this by building a simple image layer that loads an image ...
2
votes
2answers
453 views

Insert Javascript code in Popup.FramedCloud?

I would like to have a live stream from a web camera in a Popup.FramedCloud. All I need to do is to insert this code in the HTML code parameter for popup: <script ...
2
votes
1answer
127 views

Filter by specific amenity in OSM

I'm new to maps, and have been searching for the past couple of hours how to get started with OpenStreetMaps without much success. What I would like is a spreadsheet with the coordinates, names and ...
3
votes
3answers
1k views

How do I edit info feature attributes in GeoServer with OpenLayers

Can you help me? I have a very difficult problem when doing project... I have used OpenLayers and GeoServer. When I click in the map to get feature info, I receive the info for the feature and ...
2
votes
2answers
55 views

XML not getting convert into list of Feature Objects

I'm getting a following XML response: <wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:Alexandria="http://www.opengeo.org/alexandria" ...
6
votes
2answers
634 views

Is there a way to use image sprite for different marker icons?

I just made the switch from Google Maps V3 to OpenLayers. I realise that OpenLayers API uses a lot of inline styling. If an image file consisting of several images can be used, it would cut down ...
2
votes
1answer
516 views

Openlayes - Loading 3 different KMLs via proxy; one appears and the others don't

I'm loading 3 KMLs using an ashx handler taken from http://code.google.com/p/iisproxy. The 3 KMLs I'm trying to load are Openlayers sundials ( http://openlayers.org/dev/examples/kml/sundials.kml ), ...
5
votes
2answers
5k views

How can I unselect a feature in Openlayers?

I am able to identify the selected features on my map using the following line: vector_layer.selectedFeatures I would like to be able to deselect this feature using a standalone function (not an ...
1
vote
2answers
602 views

Is there a layer type that supports just labels?

Is there an OpenLayers layer type that supports just labels on a map without an underlying feature? I think this is called an annotations layer in GIS? If not, I'm not sure how to approach this and ...