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

learn more… | top users | synonyms

0
votes
0answers
29 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
309 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
664 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
203 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
533 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
428 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. ...
2
votes
2answers
1k views

How to make zooming for OpenStreetMap in OpenLayers more sensitive to mouse wheel scrolling?

I have been testing OpenLayers for a while and I notice that the scrolling on OpenStreetMap layer does not make the map zoom in or out as much as I would like it to be. On most occasions, I am only ...
1
vote
2answers
710 views

OpenLayers FramedCloud has transparent background

I am creating a FrameCloud popup instance and adding to the map using the following code: var popup = new OpenLayers.Popup.FramedCloud("popup", point, null, ...
3
votes
1answer
2k views

How to get all Vector layers from OpenLayers map?

OpenLayers.Map object exposes a method call getLayersByClass. How do I use this method to retrieve all of the Vector layers from the map? I tried map.getLayersByClass("Vector") but this returned an ...
2
votes
2answers
213 views

How can a style be set on a specific polygon using OpenLayers?

Using a polygon id, I want to highlight a polygon, while the mouse is outside of the map area. I can identify the polygon using the following approach: x = 53; for(i=0; ...
3
votes
1answer
3k views

How can GeoJson polygons be colored programmatically using OpenLayers?

I'm experimenting with dynamically setting the color values of a geojson polygon. In my geojson file, there is an attribute for each polygon called pop_den. I am trying to update the fillcolor of the ...
1
vote
1answer
170 views

What is a good learning source for programmer who wants to understand the infrastrucre of map based web map?

I want to to write a simple web app with a map (tile cache because of hi res raster) that once a user click the map he can do some queries on it (as in search in polygon , radius , nearest ) on the ...
0
votes
2answers
247 views

What are the top best webmapping API clients? [duplicate]

Possible Duplicate: Comparison of JavaScript mapping libraries? I am looking for the top APIs that I can use to display maps from a number of map servers/sources. (like openlayers and ...
2
votes
1answer
922 views

3D Building Generator Tool

I am using ArcGIS desktop 10 and I would like to change a 2D polygon into 3D building. Does anyone have any idea from where I can download the 3D building generator tool for ArcGIS Desktop? I read ...
5
votes
1answer
643 views

Can't pan around my OpenLayers map .. unless there are no Layers under the mouse

So I've got my map displayed and some Features added to a Layer. All good, etc. When I try and pan around my map, I can only pan when I left-click the mouse .. hold .. and drag the mouse ... when the ...
2
votes
2answers
5k views

How to show a toolip over a feature with OpenLayers?

This is a continuation (part 2) of this previously asked GIS question. I have an array of objects. Each object has a name, some score and some Well Known Text. For each object, I'm displaying the ...
1
vote
2answers
882 views

Looking for .Net alternative to Mapxtreme

I'm pretty new to the GIS area. I was involved in a project that used MapXtreme server and MapXtreme SDK to query the tabs (as in SearchNearest , SearchInRadius etc...) I'm looking for an open source ...
4
votes
1answer
2k views

How do I set attributes when creating vectors using OpenLayers and WFS-T?

I have published a WFS-T layer (using geoserver) and am able to add, edit and delete features using OpenLayers and it's Vector layer. But, I don't know how can I populate additional attributes using ...
0
votes
1answer
452 views

php for “selected feature” - Combination of Openlayers and php-Form

I use a postgres db, geoserver and openlayers to display a map with a wfs-t Layer that displays the geometry column of my table. Now I use control select to call a popup which contains a form to edit ...
1
vote
2answers
390 views

Hovering of a shape with OpenLayers doesn't un-highlight the shape

So I've got a list of shapes (zipcodes) which I'm trying to display on an OpenLayers Google map. They render fine. When I hover over them, the shape colour changes. Great! when i -leave- the shape, ...
2
votes
1answer
2k views

Openlayers error after removing selectFeature control

I am using a selectFeature control for a point layer in OpenLayers 2.12. I have a problem after removing the selectFeature control from the map. The reason why I want to remove the control is because ...
3
votes
2answers
2k views

zoomToExtent on Vector Layer

Can someone explain if I am doing this correctly please? I've added some vectors to my map, now wish to zoom and centre the map based on the extends of those vectors. I'm using the following code: ...
2
votes
0answers
66 views

Features disapearing

When I add a polygon feature it shows on the map. When I add another one the first one disappears. The code for adding is below: $.postJSON('@Url.Action("GetLayers")', { "planId": planId }, ...
2
votes
1answer
2k views

How to remove a layer from the Layerswitcher in Openlayers

I have an init-Function, there some layers are added with the option displayInLayerSwitcher = false; Thats ok, but in some situations i need to set this later in the application to true. So i want to ...
2
votes
1answer
173 views

Applying styles to Polygons

Still learning OpenLayers and I think my problem may be a lack of understanding the terminology, however. Is it possible to draw polygons in a different colour within one vector layer, or do all ...
3
votes
2answers
671 views

How to speed up the process of vector data visualization for a web application

I have a GIS web application and vector data that is going from the model to the web application. For developing the User Interface I am using JavaScript and OpenLayers. But sometimes the amount of ...
6
votes
2answers
398 views

How to visualize geolocated data on a slippy map on a website?

I am trying to visualize some data on a website that has been measured while driving around. My source is a CSV file with longitude, latitude and my measured data. I have been able to export it to a ...
7
votes
2answers
204 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
4
votes
2answers
2k views

How to implement Routing in openlayers [closed]

I need to add routing functionality in my application how to add the routing in openlayers.
2
votes
1answer
2k views

How to record a base layer change event in OpenLayers?

The OpenLayers.Control class possesses an eventListener property which could be used in the layer switcher control. I am not sure how to make use of it to detect a base layer change event so that I ...
2
votes
1answer
483 views

Vector Layer not visible in openlayers

I'm trying to create a map where I have one wms layer and then a vector layer which is created from a kml file - held in the same directory as the web page. I'm trying to implement the cluster ...
7
votes
1answer
823 views

Is dynamically generating Choropleth maps a solved problem?

I am trying to work out what mapping tools I would need to use to dynamically create Choropleth maps from our data. I am working on a project where the backend is a big database of statistics, and ...
5
votes
3answers
1k views

How to update feature positions with clustering in OpenLayers?

I have an OpenLayers 2.12 map with a vector layer with a cluster strategy. All the static behavior is how I want it. Now I'd like to add the possibility to update the features' position. I do this ...
4
votes
1answer
1k views

OpenStreetMap tiles not loaded despite being received

While using OpenLayers to load OpenStreetMap, I observe that part of the map would sometimes be covered with blank pink tiles. I searched and found similar complaints with solutions suggesting the ...
2
votes
1answer
995 views

How to suppress moveend event while switching the base layer?

I have created a map that contains a two base layers (Google Street Map and Open Street Map). A moveend event listener is registered to listen for any map movement which would perform a function call ...
4
votes
1answer
117 views

How to reverse the drawing order of markers?

I saw this example which demonstrates how ordering can be controlled with markers added using styling options (graphicZIndex) applied to a vector layer. Due to the limitations in the combination of ...
2
votes
1answer
2k views

Determine why OpenLayers.Bounds containsLonLat() returns false

In this code, I'm loading a bunch of random points that are roughly in the contiguous USA. I've created a OpenLayers.Bounds object roughly corresponding to that extent. When I select a point, I want ...
0
votes
1answer
305 views

Vector data(point) is drawn in wrong place on map (OpenLayers)

I need to show a map (world map, used default OpenLayers WMS) and one point on it (with events like onhover, etc). Here is my code: var options = { ...
1
vote
0answers
510 views

Add wfs layer to openlayers map

(UPDATE QUESTION) Hi guys. I have a problem with WFS request, mine is follow: var wfs = new OpenLayers.Layer.Vector("WFS",{ strategies: [new OpenLayers.Strategy.Fixed()], ...
1
vote
2answers
563 views

How to trigger a map click event?

I have a map with some markers. On clicking a marker, a popup would appear and on clicking the map, any visible popup would be hidden. I want to hide any currently visible popup upon clicking a marker ...
1
vote
1answer
254 views

Click to Openlayers shows blank pop up - All Formats for Images Works

I am totally new to GeoServer and all this WebServer stuff, so please understand that all the gray hairs on my head over the last 2 weeks are from trying to get this all set up and working. When I ...
1
vote
1answer
647 views

OpenLayers - Navigation History CSS

I am having a problem assigning background-images to my OpenLayers NAVIGATION HISTORY tool on a custom OpenLayers panel. Here is the code I use to create the tools and add them to my panel: ...
0
votes
2answers
3k views

Create different CSS for Two Buttons in One Control Panel

I am having a problem applying CSS to two custom OpenLayers buttons. I create a PANEL toolbar and then add 8 buttons to it. The ZoomBox, DragPan, ZoomOut, ZoomIn, and nav.next and nav.previous buttons ...
1
vote
0answers
208 views

Problem HTTP request for KML

i have a problem with HTTP request for KML to add to map. This is my HTTP request: var x = new OpenLayers.Layer.Vector("X", { projection: new OpenLayers.Projection("EPSG:4326"), strategies: ...
2
votes
2answers
1k views

OpenLayers - Test Control To See If It Is Active

I am trying to get the active state of an OpenLayers SelectFeature control. I create this control and add it to my map but I do NOT activate it yet. This part works fine. Here is the script to create ...
3
votes
2answers
1k views

OpenLayers spatial filter polygon problem

I've got a dataset of English Counties (currently cut down for testing) that I'm serving from SQL 2008 using MapServer and OpenLayers. The features in my dataset are appearing in the right location on ...