Questions tagged [openlayers-2]

Use this tag when you are using version 2.x of the OpenLayers JavaScript client toolkit.

Filter by
Sorted by
Tagged with
19
votes
5answers
43k 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
8k 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: http://trac.osgeo.org/openlayers/browser/trunk/openlayers/...
7
votes
4answers
14k views

Cannot see OpenLayers under Plugin in QGIS?

Although I have installed the OpenLayers plugin in QGIS 2.4, I cannot see it in the list when I click on Plugins. Does anyone else have this issue?
15
votes
2answers
6k 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 ...
13
votes
2answers
7k views

Switching baselayers as user zooms in to 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 imagery....
11
votes
2answers
13k views

Google Maps not Showing in QGIS 2.12

The Google Maps in my OpenLayers plugin in QGIS 2.12 does not show anymore. The other maps do show, that is: OSM Bing MapQuest Stamen Apple Maps I tried in QGIS 2.8 and Google Maps does not show ...
29
votes
5answers
10k 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 ...
3
votes
1answer
11k 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 ...
13
votes
2answers
10k 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 ...
11
votes
2answers
15k views

Enabling CORS in OpenLayers

Is it possible to enable Cross-Origin Resource Sharing (CORS) in OpenLayers? If so, how? I have a web map in OpenLayers, and I'm using an HTML canvas to render it as a PNG image. My script works ...
12
votes
8answers
7k 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. ...
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 ...
6
votes
4answers
6k views

Misplaced Google Maps with OpenLayers plugin in QGIS?

I was using Google Maps with OpenLayers plugin in QGIS with my vector layer with projection EPSG:4326 with google map projection EPSG:3857 and "on the fly" transformation enabled. It was matching ...
8
votes
3answers
3k views

When do I need to use a proxy with OpenLayers2?

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 definitive answer. Wondering if this is the route of my problems. For instance, if I ...
4
votes
2answers
13k views

Display a WFS layer with OpenLayers2

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 here but, for ...
4
votes
3answers
3k 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. ...
57
votes
3answers
24k 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 ...
22
votes
5answers
17k 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', { ...
8
votes
1answer
8k 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", ...
13
votes
4answers
20k views

How to overlay lat/lon points on a Google layer in OpenLayers 2?

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 ...
28
votes
4answers
32k views

How to define layer order in Openlayers?

I have a marker layer, two vector layers and two raster layers. The marker layer gets covered by the two raster layers. Is there a way to move the marker layer always on top? Edited: The order of Z-...
9
votes
3answers
20k views

How to connect OpenLayers to PostGIS data?

I have read in OpenLayers how to load KML, GeoJSON etc. vector files in OpenLayers. But how can I connect to PostGIS data. If not, why should I upload my data to PostGIS then instead of directly ...
7
votes
3answers
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 ...
9
votes
4answers
17k views

How to reproject base layers in OpenLayers?

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 EPSG:26912 projection. Now I want to use these as ...
7
votes
1answer
4k views

How to add KML data but from variable - not from url?

I have a working map that retrieves KML from a url, but now I need to get the KML data from a local variable instead. Is there support for this, and if so what is the syntax. Searched the api and ...
6
votes
3answers
6k views

WFS-T Edit using OpenLayers, Geoserver, PostgreSQL (“error performing insert”)

I tried following the tutorials: http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html and: http://apps.who.int/tools/...
2
votes
3answers
1k views

Can I use Openlayers Plugin with a different Datum/Projection?

There is probably already a post for my problem, but after long searching, I could not find a solution for my issue. I am working with QGIS und I am using the following projection/datum: MGI / ...
1
vote
1answer
3k views

Showing Two Labels of One feature In GeoServer?

I have prepared a Web GIS Map using Geoserver-Openlayers_Postgis....For One Feature I need to show two labels such as "premise_no' & "bld_name'... The following is the xml I used for styling(in ...
89
votes
8answers
67k views

Choosing OpenLayers or Leaflet? [closed]

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 ...
17
votes
2answers
3k views

Understanding web mapping tools [duplicate]

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 ...
12
votes
5answers
7k views

Tutorial for OpenLayers? [closed]

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) ...
6
votes
3answers
10k 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 loading-...
5
votes
1answer
13k 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 ...
2
votes
1answer
5k views

How to edit feature attributes with openlayers?

I want to edit object's attributes on WFS layer. I see this example http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique_with_group_wfs.html but popup is horrible. I want to use ...
7
votes
1answer
9k views

Openlayers2 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

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 ...
6
votes
4answers
12k 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 ...
5
votes
1answer
7k views

Access-Control-Allow-Origin Openlayers WFS

I try to use a WFS service with OpenStreetMap to request GeoServer GeoJSON file. First I had a error message on the Firefox Cross-Origin Request Blocked: The Same Origin Policy disallows reading the ...
4
votes
3answers
1k views

Using WFS Caching / Back button?

I'm using WFS protocol on Vector layer / GeoServer / PostGIS Currently the map is refreshing and calling new requests whenever i do anything like searching or drawing and when i move back to a part ...
1
vote
2answers
1k 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()], ...
3
votes
2answers
4k 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, (http://172.20.100.13/...
3
votes
2answers
3k views

How to get column names of layer (WMS) using OpenLayers?

Is it somehow possible to get layer's column name using OpenLayers? any example and documentation would be really useful? Edit: I have already tried WMS_describeLayer topp:states layer: <?xml ...
3
votes
1answer
381 views

Problem with MGI CRS on the Balkan

I have problem with CRS Bosnia and Herzegovina? MGI 1901 / Balkans zone 6 EPSG:3908 MGI 31276 / Balkans zone 6 EPSG:31276 Which of these two is OK? When I open google sattelite image with ...
2
votes
1answer
1k views

Syntax of WFS request in OpenLayers

I am in need of the correct syntax for loading WFS layer using OpenLayers. I have gone through many examples on the OpenLayers site and other examples, but can't figure out how to use the necessary ...
2
votes
1answer
473 views

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

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 ...
2
votes
1answer
2k views

routing using openlayers and pgrouting

I would like to do a Dijkstra routing using pgrouting and openlayers. I have the downloaded osm data. I am following the workshop given in this link. But since I am very new to this I found it ...
2
votes
1answer
2k views

OpenLayers 3 - submit SLD text in WMS call

Earlier versions of OpenLayers allowed for the submission of the text of an SLD in a call to the server side WMS. This describes the procedure, and cautions that, if your SLD is too long, you ...
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 layer ...
44
votes
3answers
17k 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 ...
14
votes
2answers
7k views

OpenLayers alternatives supporting more client-side features [closed]

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 ...