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

learn more… | top users | synonyms

3
votes
1answer
1k views

Implementation of a tiled map service

I have been looking for solutions on the Internet for the last two days without finding answers. Currently, I have a Java web application that displays a map using OpenLayers. The problem is that the ...
3
votes
2answers
964 views

OpenLayers with Google, Bing & MapQuest - Does it violate the terms of service?

to my understanding, you are not allowed to use the Google Maps API to display Google and Bing maps (Layer Toggle) (From the terms of service). However, I'm unclear if I can have an OpenLayers map ...
2
votes
1answer
963 views

How to unproject coordinates on a Google map with Openlayers?

Below is my code and a pic. When I finish making my circle on a Google map with Openlayers, I get the following coordinates but I want coordinates like E.G: bottom: -27.762124575762 left: ...
2
votes
1answer
1k views

Adding a marker with openlayers/geoserver

My name's Tony. I'm from vietnam. I want to add a marker in webgis with openlayers/geoserver. Here is my code : <!-- Import OL CSS, auto import does not work with our minified OL.js ...
3
votes
2answers
318 views

In OpenLayers displaying two images at the same time

Within OpenLayers, I have two images, both jpg with world files, and each 1440 x 900 px. The two images are geographically located next to each other. Is there a way to display both images at the ...
0
votes
2answers
623 views

Handling geoExt popup when one or more layer fails to load

GeoExt info Popup is very easy to use but when one or more layer is missing or fails to load Avoiding Pink Tyles. The popup is not filled with the values. While I can see that request is sent to the ...
2
votes
4answers
7k views

How to use Google Maps V3 Geocode with Openlayers

How to use Google Maps V3 Geocode with Openlayers. Below is my code but the function does not execute when I try to integrate it with Openlayers. This works with my original google v3 file. Below is 2 ...
7
votes
1answer
3k views

How to style features created by DrawFeature control?

I've been following this tutorial: http://workshop.pgrouting.org/chapters/geoext_client.html#select-the-start-and-final-destination It contains an Openlayers.Control.DrawFeatures control defined in ...
0
votes
1answer
830 views

OpenLayers/GeoServer/Oracle combo input/output scenario

Im completely new to GIS. I must finish already started project that uses Oracle as DB for geoobjects, Geoserver, OpenLayers. Task is to draw something on a map (OpenLayers must handle that drawing i ...
0
votes
1answer
725 views

How do you convert the radius decimals of a circle in Openlayers to Kilometers [duplicate]

Possible Duplicate: Unproject Radius with Openlayers with CRS:84 Projection I allow a user to draw a circle in Openlayers. I created an alert to show the radius of the circle. I now need ...
2
votes
1answer
2k views

How to get the radius of a “circle” in Openlayers

How do you get the radius of a circle in openlayers? I have searched quite a bit and cannot find any resource for this. please help. Here is my code but I want the radius or circumference of the ...
1
vote
2answers
872 views

Openlayers Vector Layer Polygons not displaying properly with OSM

So I have an Openlayers map displaying Acetate tiles in OSM, and I'm drawing polygon regions on a vector layer to represent the countries of the world. This works fine for the most part, however, ...
1
vote
1answer
424 views

Are there any repositories to find custom map tiles for an OpenLayers implementation?

I can't seem to find an WMS that looks the way I want. I've also checked all of the regular OSM places too and haven't quite found anything. Can anyone recommend any places to find custom map tiles ...
3
votes
2answers
362 views

Third party base layer other than Google map

Can we use third party base map (images tiles) for displaying vector data?, like we use google map as base layer for displaying vector data in OpenLayers application.
2
votes
2answers
935 views

How to use different 'missing tile' for OpenLayers?

I would like to use a different image for missing tiles with an OpenLayers application. Currently the tile is red/pink, with a red x in the upper left corner. I would like to remove that corner, does ...
0
votes
1answer
910 views

Using Google API 3 with Openlayers Brings POPUP [duplicate]

Possible Duplicate: Google Maps layer copyright popup every time map updated / user input I recently upgraded from google map api v2 to v3. It was working quite fine previously but now it ...
3
votes
2answers
2k views

How to implement feature search in OpenLayers with Geoserver?

I'm looking to build an application similar to this ArcGIS Server JS example which does a find task against a layer in the map. However i want to do this with OpenLayers, Geoserver and PostGIS. Some ...
5
votes
2answers
5k views

Will mousedown events fire with Touch events on OpenLayers mobile?

I can't get the mousedown event to fire on a mobile device when I click on a marker. I'm using openlayers 2.11 with TouchNavigation. The mousedown event fires just fine in Chrome on my Desktop. Are ...
3
votes
1answer
801 views

OpenLayers jQueryUI Draggable

I am using open layers to render a wms inside of a div tag. This is right out of the openlayers documentation. My WMS layer is rendering well. <div id="map"></div> Using the jquery UI ...
0
votes
2answers
1k views

GIS Web API - WFS-T Edit

My organization has a asset management application using Google Maps Java API as the GIS viewer. The application does some simple editing/querying on a kml file through html form elements. Instead ...
9
votes
3answers
1k views

Best way to animate radar data in openlayers

I have a project using OpenLayers which displays radar data on a map. The radar data itself is just a bunch of polygons each of which is filled with one of 6 possible colors. The goal is to animate ...
0
votes
1answer
675 views

Any example for Google like the bing OpenLayers/examples/bing-tiles-restrictedzoom.html?

I would like to restrict zoom levels in Open Layers for a Google Map. A bing example shows how to limit the extent of the bing tiles: var road3 = new OpenLayers.Layer.Bing({ name: "Road tiles ...
2
votes
2answers
309 views

How OpenStreetMap data layer works?

OSM map has a data layer and an information panel. How is it implemented? What is a type of the layer and URL of vector data source? How information panel works? Thanks for all!
1
vote
2answers
811 views

OpenLayers Circle not visible

I'm trying to draw a circle with OpenLayers with a Google Maps Layer. I'm able to transform a simple marker and have it draw at the correct location, but I can't figure out the circle. I'm trying to ...
11
votes
3answers
7k views

Google Maps layer copyright popup every time map updated / user input

I have used a Google Maps hybrid layer in Openlayers in my HTML5 iOS app for months now and it worked perfectly. Just recently they changed something because the 'Map data...' line at the bottom looks ...
3
votes
1answer
879 views

OpenLayers.Layer.Vector not working?

I'm struggling to get my vector layer working. The wfs works as I have tested it by creating a wfs layer and adding it to the map, now I'm trying to display a vector layer with the results of a search ...
5
votes
1answer
1k views

WFS-T: changes not saved on an OpenLayers map

I have written a script allowing to display a few WMS and WFS layers and I want to make my 2 WFS layers editable. I have all my controls and can draw / modify / drag / delete my features but, on one ...
1
vote
1answer
2k views

WFS layer not showing? [duplicate]

Possible Duplicate: How to add GeoServer wfs layer on OpenLayers? I'm really new to this and am making a map for a university project, I can't get my WFS layer to show up on my map, the WMS ...
2
votes
1answer
1k views

How to Edit Popup using Openlayers Text Layer?

I am creating a map with about 1000+ points using Openlayers. Currently when I click on one point's icon, the description for the point shows up in a popup, and to exit the popup I need to click on ...
2
votes
4answers
2k views

OpenLayers transform EPSG 27700 coordinate to Google 900913

Community, I'm currelty capturing my mouse click event and trying to transform the coordinates into Long Lat. I need to get at the Long Lat as strings so I can build a url and throw it at Google ...
4
votes
2answers
8k views

Display a WFS layer with OpenLayers

Good Morning! I have some troubles displaying a WFS layer with OpenLayers and hope someone here can give me a hint. Before moving on, I precise that I have already checked other posts, like here and ...
2
votes
1answer
2k views

How to choose between Markers and Features for drawing Openlayers objects?

Yesterday I was trying to create first mock-ups of my GPS tracker interface, and was exploring the available OpenLayers objects for drawing on a map. I began with simple task - placing a marker on a ...
4
votes
5answers
3k views

Openlayers renderer in IE8 - Labels not visible

I copied the source code of http://openlayers.org/dev/examples/vector-features-with-text.html. This url works just fine in IE8. I put the html page as it is in the webfolder in our network. I opened ...
4
votes
3answers
4k views

OpenLayers: Showing a WFS overlay on top of Google Maps

I have found similar questions asked previously, but I still fail to get a simple WFS point layer to work using OpenLayers and Google Maps. The original code I used was based on WFS polygon layers I ...
1
vote
1answer
318 views

Openlayers dynamically label polygon segments

My requirement is to show dynamic label on polygon feature's segments with some offeset. The label text should have the rank of each segment. If it is a square which starts at top left corner it will ...
5
votes
2answers
2k views

Using OpenLayers (with OpenStreetMaps) and PostGis for rendering data acquired from GPS tracking device?

I'm researching and planing to acquire data from GPS device and store them in postGIS database, then use geodjango to process/work them out and finally chart them on a map with OpenLayers. Will these ...
3
votes
1answer
4k views

Path to proxy.cgi for GeoServer is not accessible in browser

There have been several questions very similar to this asked already (including ones not involving GeoServer), but their solutions have not solved my problem. I am trying to use getFeatureInfo on my ...
5
votes
1answer
3k views

How to parse polygons from GML in OpenLayers?

I'm reading a GML file from an URL. This file contains polygons. I would like to draw the polygons on a map, where each should have a different color. But all examples I found on the web so far seemed ...
5
votes
2answers
5k views

How to change the WMS Background Color in OpenLayers?

I am using geoserver to serve up an image pyramid basemap. I want to have all areas outside of the data extent be black (instead of white). I have the map displayed inside of a div tag and changing ...
0
votes
2answers
418 views

Points appear at different location when using google map overlay

I have used vector point from database and also polygon country vectors from database.Points appear with in this country vectors but as I switch to google earth map as base layer the points at smaller ...
3
votes
1answer
592 views

How to save a Leaflet or OpenLayers map for opening later?

Can a webmap state be saved to a text file or something for restoring later? Like if I set up a map with a particular zoom and choose my layers and draw a polygon or two, can it be saved to a file and ...
0
votes
1answer
397 views

Google Map layer loads tiles even if this layer is disabled in OpenLayers

Sorry for cross posting I've asked this question in OL mailing list, but not get response yet. It is very important for me to resolve this issue. I've made a little example that reflect my problem. ...
1
vote
1answer
851 views

Capturing/overriding mousewheel zoom in openlayers

So I've created a map in openlayers and I am setting it up so that there are only certain zoom levels a user can see. I have the code created to handle forcing a user to the next acceptable zoom ...
2
votes
1answer
3k views

How to use Google Default Pan/Zoom controls in openlayers

I am using Google maps version 3 with Openlayers,My question is how do you use the default google control for Panning and Zooming and not the default controls Openlayers panning and zooming(The dark ...
0
votes
1answer
2k views

How to change events in the Oncomplete Drag function in Openlayers

below is code that works for Openlayers drag function: drag = new OpenLayers.Control.DragFeature(polygonLayer, { autoActivate: true, onComplete: function() {alert('Are you sure this is the ...
5
votes
2answers
2k views

How to disable polygon Label on the vertices (OpenLayers) in Edit Mode

I added the style on the polygon layer like so. var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']); // get a copy of the default style style.label = "1233456 ha" ...
0
votes
1answer
611 views

How to define a css class for a delete button in Openlayers?

Define a css class for delete button in openlayers? .olControlDelete { background-image: url("help.png"); background-repeat:no-repeat; background-attachment:fixed; ...
11
votes
3answers
3k views

How to merge two Polygons in OpenLayers?

I have two polygons. polygon1 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing1])) polygon2 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing2])) ...
2
votes
5answers
4k views

What causes this unexpectedly poor GeoServer/PostGIS/OpenLayers performance?

I am having a tough time making this map run smoothly (play around with it for a bit, you'll see). I have taken a few tips from OSGeo's Making Maps Fast document, but I think there's another issue ...
0
votes
2answers
10k views

Openlayers How would i get a hover label over my polygon

make a hover/mouseover label for a polygon in Openlayers? I made a map with draw, delete and drag polygon function. Now I need to make a hover mouseover for this. How to get a hover label for ...