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

learn more… | top users | synonyms

8
votes
1answer
2k views

getExtent() in OpenLayers returns strange values

I'm trying to get the bounding box of the map area displayed by OpenLayers. I tried to use map.getExtent() because it should be exactly what I need, but the returned values are "strange": For ...
2
votes
4answers
2k views

Blank map when working with OpenLayers and Geoserver

I'm trying to develop a map with 4 layers: two shapefiles (layers: "roads" and "hospitals") and two World Image Files (layers: "hypsometric","shadows"). I installed OpenLayers and tried to write ...
4
votes
2answers
664 views

Updating a layer's bounding box in GeoServer after WFS-T insert

I'm creating a data store in GeoServer from an OpenLayers DrawFeature control, using WFS-T to save the geometry into GeoServer. This works great, except the data store's bounding box doesn't get set ...
2
votes
1answer
166 views

Remove “lost” Popup

sometimes Popup bubbles dont disappear or cannot be closed with the x button in the corner, because something went wrong either with the code or the handling of the script or probably both. Is there ...
3
votes
3answers
1k views

How to access both IIS and Geoserver at port 80 from outside the production environment?

At production server, IIS and GeoServer are installed. I can access IIS at port 80 From out side the production environment. i also want to access GeoServer at the same port 80 from out side of ...
19
votes
6answers
3k views

Creating a small web-mapping/map-tiling service

I am looking for a small-scale and easy way to present one or more polygon shapefiles online (on a municipal website without any existing map-server infrastructure, to be precise). Right now, I'm ...
2
votes
3answers
1k views

tile cache error : Lower left corner is outside layer bounds

i have made a wms layers in openlayers consuming cached tiles generatred by tile cache , in the generation step i have used this configuration : [vmap0] type=WMS ...
3
votes
1answer
3k views

Relabel Vector Points in OpenLayers

I have created two labeled vector points on an open layers map. I'm trying to change the label text dynamically. I tried changing the values where the stylemap gets the values from and calling ...
6
votes
2answers
2k views

Openlayers geometry: how to convert area from degrees to square kilometres?

I get a multypolygon from my web service and want to calculate the area of that polygon. I was trying to use this piece of code: var poly = new OpenLayers.Geometry.MultiPolygon(poligon); var area = ...
4
votes
1answer
2k views

Map from Mapbox as layer in OpenLayers

I want to use this map from mapbox as base layer in OpenLayers: http://mapbox.com/#/tileset/iraq I used this example to make it work. Everything is fine when I keep the code as it is with original ...
2
votes
1answer
2k views

'Select' and 'hover over' features are not working although no error is displayed (openlayers)

On the following html code i get no errors when i check it on firebug. When i select or hover over features i want to see them "highlighted". When i move my cursor onto a feature i can see that ...
2
votes
2answers
579 views

A lot of pointers to load on map-A better solution

I have to project a lot of points present in my Database say more than 100000. I heard that using geoserver is a better solution as it can render any number of points and from ...
2
votes
2answers
393 views

Control Map Pan per checkbox

i want to add the functionality of switching the option to pan the map and put it in a checkbox. But im not quite sure how i can do that. The reason I want to do this is: I have a layer which ...
2
votes
1answer
1k views

offset point using openlayers

Im trying to draw a point on a my map using openlayers which has a google maps baselayer. However the point appears way above where i click with the mouse. Im presuming that this is because i have ...
7
votes
4answers
1k views

Simplify GeoServer WFS output

I am dealing with some large datasets and would like to minimise the amount of data sent over the network. I am using OpenLayers' BBox strategy to only transfer the data that is needed but I am ...
2
votes
1answer
792 views

geoserver wfs insert error

I keep getting an insert error from geoserver when trying to save a point, poly etc etc to my postgis table. any ideas, my code is below var Projection = new OpenLayers.Projection("EPSG:4326"); ...
6
votes
5answers
7k views

OpenLayers: ALL image layers are out of place on google maps v3 and OSM base layers

Summary: I have 2 different image layers that looked fine with my old mapstraction/google maps based system. Using the same coordinates as bounds in openlayers results in a shift to the north by like ...
2
votes
1answer
501 views

saving vectors in PostGis

I need to save my vectors layer back to postgis, which if i read correctly i can do using geoserver however im confused. All the examples ask you to import a shapefile. I dont have a shapefile. ...
4
votes
3answers
2k views

How to properly utilize DWITHIN Spatial Filter in OpenLayers

Given the following code: var points = []; points.push(new OpenLayers.Geometry.Point(-110, 38)); points.push(new OpenLayers.Geometry.Point(-108, 40)); var lineString = ...
11
votes
9answers
2k views

What is a good Javascript web API (preferably open) for building web maps that require little/no maintenance?

I have recently volunteered to make a web map for a local non-profit. The map will be pretty basic. It needs to display Lane county, Oregon split into multiple districts, with a "central office" ...
18
votes
4answers
5k views

Maximum number of point features in an OpenLayers vector layer

In your experience, how many point features can be added to an OpenLayers vector layer (new OpenLayers.Layer.Vector("Point Layer")) before it goes unusably slow? My use case is to display points from ...
2
votes
2answers
288 views

For Better response time-Map loading

I am trying to develop an application using OL. In my code I am using base maps of google , yahoo etc. For this I am including the link in the script,this means that I am connecting to respective ...
10
votes
4answers
9k views

Overlaying lat/lon points on Google layer in OpenLayers

I'm stuck adding a vector point in lat/lon on top of a Google layer in OpenLayers. The point is moving when I pan the map. This doesn't happen if I replace the Google layer with a layer in WGS84. How ...
4
votes
3answers
309 views

Amoeba Shape object

I am doing a project for an organization using OL. I was successful in creating buffers around a point for a given radius, but I was just shocked from their response,they just asked me is there a ...
1
vote
2answers
659 views

geoserver and tiger roads layer overlay problem

Been playing with open layers, geoserver and the tiger roads shapefile but cannot get it to line up correctly over new york. I have looked online and followed the instructions regarding setting the ...
2
votes
3answers
4k views

Interpolate points between coordinates for smooth animation in google maps or openmap

I have an application where we want to create an animated route based on recorded points. I have an example that use the google maps driving directions, however, we already have points and they are ...
0
votes
1answer
540 views

Geoserver layer group problem!

I seem to be having a problem previewing a layer group in geoserver. I have 3 shapefiles that i converted from a dxf and i can preview each successfully however when i try to preview the layer group ...
1
vote
1answer
609 views

GeoServer OpenLayers.Protocol.WFS available options? [duplicate]

Possible Duplicate: Understanding OpenLayers documentation I'm trying to use OpenLayers as part of OpenGeo to display WFS data. My data isn't displaying and I am having trouble finding out ...
2
votes
2answers
2k views

Problem with save strategy

Below is my code which i am using for modifying features and drawing new features. saveStrategy = new OpenLayers.Strategy.Save(); saveStrategy.events.register('success', null, ChangesSuccess); ...
-5
votes
1answer
163 views

Retrieval of only new values from the database

I am using Postgis as my backend for my project along with geoserver and openlayers. I have a table in my DB which gets filled up very frequently. Now when a user gets connected to a server , he can ...
0
votes
1answer
374 views

google maps aerial photography

Ive been playing around with geoserver, google maps and openlayers and have been reasonably successful however when using the aerial photography from google i dont seem to be able to zoom in as far as ...
3
votes
1answer
3k views

Reproject a vector layer (EPSG:27700) using WFS onto a googlemaps background (EPSG:900913)

I have the following HTML-javascript code and i have problems reprojecting the vector layer (WFS) from EPSG:27700 (British National Grid) to EPSG:900913 (googlemaps). I managed to project the WMS ...
1
vote
2answers
575 views

WFS-T Namespace

I've faced with this problem: The WFS POST request that OpenLayers performs does not contains following namespaces: xmlns:wfs="hxxp://www.opengis.net/wfs" xmlns:ogc="hxxp://www.opengis.net/ogc" ...
0
votes
1answer
347 views

Multiple Layers+Retrieval of data from DB

I have some big & complicated task this time. I have 2 html pages(page1 & page2). Page1 is for viewing tha map. And page2 is for inputing the values(lat-lon) in a form. Any user can input ...
3
votes
1answer
867 views

OL+Geoserver+PostGIS(postgreSQL)

My task is to store the values in the database(postgreSQL) when the user inputs the lat-lon values in the form. and after submitting the form, the map should be displayed with markers at corresponding ...
7
votes
3answers
1k views

Suggestion about the database to be used with OpenLayers

Can anyone suggest me which database to be used with OpenLayers? I have to store the values in a DB table and retrieve them (trivial tasks). which is better MySQL or PostGIS? Can anybody give benefits ...
4
votes
2answers
1k views

TomTom OpenLayers zoom effects

This site has excellent resizing (and drifting) animations. http://www.tomtom.com/livetraffic Anybody know how the zoom effect is achieved? OpenLayers has an ancient sandbox with animated zooming, ...
2
votes
4answers
641 views

Incremental retrieval of data from a database - OpenLayers

I have a new task now: The user will input the lat-lon values in a html Form and when an INSERT button is clicked these values should be stored the DB. Now when a submit button is clicked the markers ...
1
vote
2answers
319 views

OpenLayers data moves when panning map

I have an OpenLayers map. On to this I have loaded a GeoJSON file. When I pan the map the GeoJSON data moves relative to the basemap. Surely this isn't right! Can anyone shed some light no why ...
1
vote
1answer
564 views

“Attribute only valid on v:image” error on popup

I'm implementing a script based on the popup on vector layer example into a cognos report. It all works fine in firefox and i dont get no errors. But if i open my script with internet explorer, as ...
1
vote
2answers
740 views

OpenLayers restrictedExtent 3857 OSM

I'm trying to restrict Extent to a map in 3857. This seems like it should be very simple, but required me to write a BBOX function for my very vanilla OSM basemap example. I've provided the code ...
4
votes
1answer
4k views

Saving Google Earth Location: OpenLayers Plugin in Quantum GIS

I use the OpenLayers plugin to load Google Earth Layers in Quantum GIS to digitize/identify certain features. As my work is large occassionally I have to quit Quantum GIS to resume later. The problem ...
3
votes
2answers
2k views

How to configure Proxy.cgi with IIS

I installed GeoServer on server 172.20.100.13 and i also publish my OpenLayers application on same server. when i make the request to this server for accessing the page like, ...
4
votes
2answers
2k views

Using WFS Layer as a baselayer

I've looked around the net and I've looked for examples, but I just can't seem to find a way to make a WFS layer be the baselayer. I set up the projection the right way and I set isBaseLayer: true . ...
11
votes
3answers
3k views

Stack - Mapnik, TileMill, OpenLayers, GeoExt

Would this work as a stack for serving webmaps with the basic GIS viewer functionality (pan, zoom, layer switching, info popups)? Apache Web Server Mapnik to serve the geo-data (TileMill to Style ...
4
votes
1answer
555 views

affine transformation on geotiff

I have a bunch of geotiffs stored in a PostGIS DB that i am mounting on my OpenLayers map. They all have the geoTransform information in them. I just want to know how i can mount them on my ...
3
votes
2answers
2k views

Circle not visible

I am trying to create a GeodesicPolygon using using the code given in http://geographika.co.uk/samples/geodesic/GeodesicPolygon.js. But the circle is not visible, I guess its a projection problem but ...
3
votes
2answers
2k views

How to do selection with a WFS source in OpenLayers?

One of my students wants to style a WFS layer and have selections too. I got as far as this code http://ian01.geog.psu.edu/geoserver/www/wfs/wfs-sld2.html which styles the WFS (though with out the ...
7
votes
5answers
2k views

The International Date Line wrap around

Using OpenLayers, I added a WFS layer (on GeoServer) with a filter that returns all features (black) that intersect my polygon (yellow) placed over some Latin American countries within certain dates. ...
6
votes
1answer
2k views

Draw route direction overlay on Google Maps or OpenLayers

I'd like to display the route direction generated from GraphServer on either Google Map or OpenLayers. The result I want is basically identical to how Google Map shows route directions, by ...