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

learn more… | top users | synonyms

2
votes
1answer
448 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
176 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
329 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
916 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
137 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
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 ...
1
vote
1answer
305 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
128 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
781 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
79 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
232 views

Silverlight API like OpenLayers?

Is there any Silverlight based WebGIS API like OpenLayers?
2
votes
2answers
726 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
227 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
273 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
196 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
239 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
860 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
574 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
761 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
408 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
236 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
911 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
163 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
205 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
346 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
440 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
124 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
625 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
498 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 ), ...
4
votes
3answers
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
586 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 ...
0
votes
0answers
28 views

How can I add KML to OpenLayers from remote server [duplicate]

Possible Duplicate: Problems adding KML layer in OpenLayers I'm trying to add the following KML to my Openlayers project: http://www.marinetraffic.com/ais/ge_marinetraffic.kml using this ...
2
votes
1answer
294 views

How can I enable panning using Openlayers and a vector overlay with controls?

I am creating a map using the following code: map = new OpenLayers.Map({ div: "map" }); Then I load in a geojson polygon layer and add two controls var highlightCtrl = new ...
2
votes
1answer
67 views

Is there a workaround for 80+ layers in OpenLayers?

My Map web app reads client list from SQL server and for each client it draw points on a different layer so that the user could turn on and off that layer and see his entire customers. Problem is that ...
2
votes
2answers
1k views

How to rotate a feature in openLayers

I have an svg image and I want to rotate it around itself so I do the following: var origin = new OpenLayers.Geometry.Point(vertices[0].x,vertices[0].y); feature.geometry.rotate(90 ...
2
votes
2answers
636 views

OpenLayers.Layer.XYZ keep previous tile if zoom with no tile

I've god an OpenLayer web with a custom XYZ layer which downloads tiles from the server itself: OpenLayers.Layer.MOBAC_OSMDROID_ZIP = OpenLayers.Class( OpenLayers.Layer.XYZ, { ...
4
votes
2answers
1k views

How can I rotate a marker in OpenLayers

I'm creating markers using this method : var markers = new OpenLayers.Layer.Markers( "Markers" ); map.addLayer(markers); var size = new OpenLayers.Size(21,25); var offset = new ...
2
votes
1answer
200 views

Highlighting Link in OpenLayers Map dynamically

I'm having a map which is rendered through OpenLayers using GeoServer. The map contains various attribute data field like link_no, X_coord, Y_coord etc. I want to highlight the link using link_no. I ...
2
votes
2answers
1k views

OpenLayers: adding a loading indicator for WMS requests

I'm new to Openlayers and GIS in general. I have a WMS request followed by the addLayer method, and surrounded by the addition and deletion of a 'loading' class to an HTML element: ...
2
votes
1answer
516 views

GML and GeoJSON vector layer can not display in Firefox and Chrome

I have following codes. It works perfectly in IE (GML and GeoJSON vector layer was loaded), but not in Firefox and Chrome without any errors noticed. Please help me to fix this problem. Here is the ...
1
vote
0answers
417 views

How can I show MapInfo tabs in OpenLayers without using MapXtreme Tile Handler?

I want to connect OpenLayers to mapinfo tabs I have , but I don't have MapXtreme license . Is there a way to show the tabs using different Tile Cache ? I can export the workspace to WOR or MWS files. ...