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

learn more… | top users | synonyms

10
votes
4answers
18k views

How to add a simple WFS layer from GeoServer to OpenLayers map?

I'm trying to add one of the included datasets with GeoServer to an OpenLayers map. I've followed the OpenGeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a ...
4
votes
4answers
6k views

Problems with OpenLayers and WFS - proxy.cgi issues

I am having problems getting WFS data to display on a map using OpenLayers/GeoExt/GeoServer. I created a proxy script like on this page: ...
11
votes
3answers
6k 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 ...
12
votes
2answers
3k views

Using Geodesic Measurements for Circle Radii?

I am currently developing an OpenLayers mapping site. Measurements can be made using a line tool, and an area tool. Both of these are currently set to calculate geodesic measurements as outlined in ...
4
votes
2answers
2k views

Unable to create WFS successfully

I know there has been lots of WFS assistant and I did follow this one word by word, which I found was the best in the entire gis stack but still no clue why I am unbale to render a WFS on base map. ...
8
votes
3answers
826 views

When do I need to use a proxy with OpenLayers?

When exactly do I need to use a proxy with openlayers? I've done a lot of reading on this but can't seem to find a difinitive answer. Wondering if this is the route of my problems. For instance, if I ...
6
votes
4answers
6k views

How to reproject base layers in OpenLayers?

The issue is: I have vector/topo/image tiled maps for some places in north america which were published as ArcGIS Server REST service. These maps (A) are based in EPSG26912 projection. Now I wanna ...
17
votes
3answers
4k views

How to put GeoServer layers behind authentication?

I want to publish map layers using OpenLayers and GeoServer. While this is easy enough to set up, I'm a bit lost when it comes to authentication possibilities. What I want is to create different users ...
19
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 ...
14
votes
2answers
4k views

How can I switch baselayers as a user zooms in to the map in OpenLayers

I have a map which overlays Open Street Map data on imagery for Pennsylvania. As a baselayer to the roads (and eventually other layers) I have two baselayers - Blue Marble NG and USGS EROS 1ft ...
1
vote
2answers
814 views

Why should we use a proxy script for Apache, Geoserver, OpenLayers?

I can't understand why we use proxy( OpenLayers.ProxyHost)for WMSGetFeatureInfo request in open layer. I am using open layer 2.10 ,apache-tomcat-6.0.35 and geoserver. Why we use proxy? How should ...
3
votes
1answer
9k views

How to add GeoServer wfs layer on OpenLayers?

I can't seem to add a WFS layer like this. It works when i copy all this code locally but as soon as i change the values to point to my own layer within my own GeoServer this is the response viewed ...
2
votes
0answers
163 views

Why do tiles seems to jump around when using ArcGIS cache layer in Openlayers?

I am use Openlayers to add ArcGIS tilecache layers using arcgiscache class or another way which is jsonp. I can show the map properly, but when I pan, zoom or drag the map, the tiles seem to jump ...
43
votes
3answers
9k views

Openlayers Animation Examples and Algorithms

i wonder for a long time if people in this community uses openlayers for animation needs. we have know this that animating on browser is a little bit exhausting for it but when a map meets with ...
16
votes
5answers
9k views

Map projection in OpenLayers

I want to overlay some data whose projection is WGS-84 on Google map layer in OpenLayers. But I just can't make them in the right place. I did as follows: map = new OpenLayers.Map('map', { ...
6
votes
1answer
4k views

Openlayers wfs vector layer

I'm trying to add a vector layer with a wfs layer and it's not working.Can anyone point a solution? Openlayers code: var wfs = new OpenLayers.Layer.Vector( "Stavros Features", ...
11
votes
2answers
2k 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 ...
10
votes
4answers
10k 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
2answers
7k 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 ...
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 ...
43
votes
8answers
7k views

How to create Vector Polygons at the same amazing speeds GISCloud is able to render them?

EDIT (outlining new bounty added): I have added the largest bounty possible to this question in hope of getting a very detailed answer. Your solution should outline a step-by-step guide utilizing open ...
19
votes
7answers
7k views

Options for displaying PostGIS vectors in OpenLayers

I am very new to web-mapping, so this question may be a little misguided. I want to have a very simple web interface using OpenLayers (or even Google Maps if that will be easier) which can display a ...
11
votes
2answers
2k views

Understanding web mapping tools

Before I start, this is going to be a general question but with specific cases. I've been trying to understand GIS tools and applications to achieve the following: Build my own basemap Publish the ...
7
votes
2answers
4k views

Search functionality in Openlayers/Geoserver

I am using Openlayers,Geoserver & Postgis.... My postgis tables are having columns as id, name, POINT/POLYGON/LINE. Each table corresponds to a layer that I am showing in layerswitcher in OL. I ...
4
votes
1answer
6k views

Setting up MapServer WMS and use it with OpenLayers

I have set up MapServer WMS on the localhost by the following map file: MAP NAME "Prvi_WMS" SIZE 600 300 # 600 by 300 pixel image output PROJECTION "init=epsg:4326" END ...
7
votes
4answers
2k views

How to close watermarks window in QGIS Openlayers plugin?

I'm using Quantum GIS Ver. 1.7.4. I have upgraded openlayers plugin 0.7 to 0.9. However when I open google satellite, a watermarks/copyright dialog box "Data Peta@2012 ..." appear in the middle of the ...
6
votes
1answer
6k views

Openlayers and Geoserver: OSM/Google Maps and WMS Overlay

I am experiencing projection problems with the following set up: GeoServer with ESPG:4326 based shapefiles (*.shp) OpenJump to edit my shapefiles Openlayers with EPSG:900913 base layers GeoServer ...
4
votes
2answers
2k views

How to collect data via WFS and Popup

I have a map with a WFS-Layer and I am able to add Polygons to my data stored in a PostGIS-database, served with Geoserver (Openlayers, Geoserver 2.1.4, PostGIS 2.0 for PostgreSQL 9.1).) How can I ...
4
votes
2answers
1k views

I want to edit corresponding postgresql data of a vector from openlayers- how to do it?

I want to edit the corresponding text/numeric data type columns of a vector through openlayres, when a user click/mouse over a vector. like, http://dev4.mapgears.com/bdga/bdgaWFS-T.html# any ...
5
votes
3answers
5k views

OpenLayers load WFS vector layer: how to check whether all features are returned from server?

My app takes several seconds to return all features of a WFS layer from server, I am wondering whether there is a way to check whether all features are returned in coding, so that we can add a ...
4
votes
2answers
854 views

Openlayers - Vector layer polygon doesn't move in-synch with Google V3 baselayers

When a polygon is drawn on the map and the map is dragged, the position of the polygon relative to the GM V3 base changes. function init() { var map = new OpenLayers.Map('map'); var gsat = ...
1
vote
2answers
429 views

WFS reprojection problems

In geoserver i have a layer in EPSG:4326. In OpenLayers i add it on map as WFS: markerLayer = new OpenLayers.Layer.Vector('Markers',{ strategies: [new OpenLayers.Strategy.BBOX()], ...
1
vote
2answers
713 views

Is it required to use BBOX strategy with WFS protocol in OpenLayers?

is it a must to use BBOX strategy with WFS protocol in Vector layers ? I cannot display this layer without BBOX strategy: vLayer = new OpenLayers.Layer.Vector("Test", { styleMap: new ...
7
votes
3answers
335 views

Create interactive map with no server

I have managed to build a great web mapping application using tiles created from GeoWebCache and a custom gridset, but I now need to add an overlay to the base maps. The only interactivity I need is a ...
6
votes
2answers
2k views

OpenLayers/proj4js and the EPSG:27700 (UK) Projection

I'm trying to use OpenLayers to transform projections, which in turn uses the http://proj4js.org/ library. var ll = new OpenLayers.Projection('EPSG:4326'); var a = new ...
4
votes
1answer
1k 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 ...
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, ...
3
votes
2answers
6k views

Drawing circles on map using openlayers

I want to draw circles of certain radius on a map using openlayers . But the latitude,longitude & radius values are given in a excel sheet. I badly need a help from you people to how to carry in ...
1
vote
1answer
1k views

How to use cql_filter in OpenLayers.Control.WMSGetFeatureInfo?

I am a newbie and I am using OpenLayers, GeoServer 2.1.3. I have a function that works to filter the markers on the map with a CQL_FILTER function. But when I click on a marker it shows a popup with ...
1
vote
1answer
2k views

WMS Request Returns nothing with Geoserver

I'm having trouble with a select feature example in Geoserver and open layers. For some reason the request returns nothing. Here's the stripped down version that produces this: I have a small wms ...
0
votes
1answer
564 views

OpenLayers controls keyboard shortcuts

I'd like to hook up keyboard shortcuts to my map controls e.g. holding down 'z' will activate the zoombox tool etc. I can't seen anything relevent in the API for doing this. Is it easily done? My ...
-3
votes
1answer
69 views

Is it possible to access geoserver wfs layer from localhost:8080 in to web application? [closed]

I want to add a WFS layer. I am trying to get WFS layer from localhost:8080 geoserver. but I am getting eoserver DateLineWrap in Openlayers.js file...
36
votes
3answers
12k views

What is the current Web Mercator projection code?

The web mercator projection, popularised by Google Maps, seems to be given a new EPSG code every couple of years. EPSG:900913 (Google in calculator text) was an unofficial code EPSG:3785 - is the ...
34
votes
3answers
13k views

Should I use OpenLayers or Leaflet?

I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver ...
12
votes
2answers
5k views

OpenLayers alternatives supporting more client-side features

I am considering different architectures for a system that will ideally use client-side rendering for point features and must be plugin-free. I have been using this application developed in response ...
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 ...
8
votes
5answers
1k views

A good tutorial for Openlayers

I need to create a web map showing many raster layers. I am using mapserver and want to use Openlayers, however I can't find any good tutorial about it. I see a couple of old questions (1 and 2) ...
5
votes
1answer
721 views

OpenLayers and Google Maps when panning tiles not in sync [duplicate]

I want to overlay WMS tiles on Google maps using the following scales 1:287 / 1:573 / 1:1146 / 1:2292 (layer preview in geoserver) I set a bounding box and a centroid for a specific area to set ...
5
votes
2answers
3k views

Animate feature in openlayers

In my map web app, I have a play pause button that show vehicle route history.I get lat lon from database and create route that vehicle traverse. At below site go to history tab after and choose ...
12
votes
1answer
613 views

Understanding OpenLayers documentation

Within the openlayers documentation I’ve noticed that “options” is many times used to show that the constructor takes parameters. But where can I get the details for this parameter {object}? How does ...