Questions tagged [openlayers-2]

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

Filter by
Sorted by
Tagged with
14 votes
2 answers
7k 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 ...
geographika's user avatar
  • 14.3k
7 votes
4 answers
16k 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?
Dion's user avatar
  • 71
4 votes
4 answers
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/...
James S's user avatar
  • 4,264
20 votes
5 answers
48k views

Adding 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 you take a ...
geo_james's user avatar
  • 591
14 votes
9 answers
13k 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. ...
CaptDragon's user avatar
  • 13.3k
15 votes
2 answers
22k 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 ...
Xavier Holt's user avatar
13 votes
2 answers
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....
Ian Turton's user avatar
  • 81.5k
11 votes
2 answers
21k 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 ...
Jim's user avatar
  • 343
3 votes
1 answer
11k views

Adding GeoServer WFS layer using 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 ...
CaptDragon's user avatar
  • 13.3k
118 votes
8 answers
97k 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 ...
Sam007's user avatar
  • 4,395
30 votes
5 answers
13k 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 ...
Mimo's user avatar
  • 629
13 votes
2 answers
12k views

OpenLayers and http basic authentication

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 ...
iluwatar's user avatar
  • 321
10 votes
3 answers
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 ...
kschaos's user avatar
  • 111
10 votes
4 answers
18k views

Reprojecting 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 ...
Simon's user avatar
  • 1,207
8 votes
3 answers
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 ...
user8262's user avatar
  • 337
6 votes
4 answers
7k 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 ...
Rajesh Kumar's user avatar
4 votes
3 answers
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. ...
Sam007's user avatar
  • 4,395
3 votes
2 answers
14k views

Displaying WFS layer with OpenLayers

I have some troubles displaying a WFS layer with OpenLayers2 and hope someone here can give me a hint. I have already checked other posts, like Adding GeoServer WFS layer using OpenLayers and Adding ...
Stéphane Henriod's user avatar
59 votes
3 answers
27k 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 ...
31 votes
4 answers
41k 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-...
Seen's user avatar
  • 2,215
22 votes
5 answers
21k 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', { ...
ChanDon's user avatar
  • 771
13 votes
4 answers
21k 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 ...
underdark's user avatar
  • 84.1k
12 votes
3 answers
26k 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 ...
GP92's user avatar
  • 653
11 votes
3 answers
3k views

In what coordinate systems do true circles appear round?

I have been developing in Google Maps for awhile and am switching to OpenLayers but am stuck on one point: I am drawing vectors that are mostly circular but also involve some custom geometry so I can'...
kschaos's user avatar
  • 113
10 votes
1 answer
9k views

OpenLayers WFS vector layer

I'm trying to add a vector layer with a WFS layer and it's not working. OpenLayers code: var wfs = new OpenLayers.Layer.Vector( "Stavros Features", { ...
Argiropoulos Stavros's user avatar
7 votes
3 answers
3k 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 ...
Mohd Ali's user avatar
7 votes
1 answer
5k 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 ...
bethesdaboys's user avatar
6 votes
3 answers
11k 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-...
Simon's user avatar
  • 1,207
6 votes
3 answers
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/...
Cat's user avatar
  • 329
2 votes
2 answers
5k 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 ...
Sandipan Saha's user avatar
2 votes
3 answers
2k 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 / ...
Florian Havranek's user avatar
33 votes
8 answers
77k views

OpenLayers - redrawing map after container resize

In my web application, I want to enable users to set the size of the map container. Everything worked fine when the container was expanded slightly (apparently this is because the tiles that were ...
Imp's user avatar
  • 878
12 votes
5 answers
9k 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) ...
nadya's user avatar
  • 2,471
10 votes
4 answers
5k views

Advantages of WFS over GeoJSON/KML?

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines on top of an OSM map in several layers. Those points ...
stofl's user avatar
  • 273
7 votes
1 answer
10k 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 ...
dubbaluga's user avatar
  • 171
6 votes
1 answer
14k 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 ...
Matej's user avatar
  • 1,758
6 votes
2 answers
16k 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 ...
gabriel chauviere's user avatar
5 votes
2 answers
11k views

Disabling Google Maps zooming animation effect

I am using OpenLayers mapping library in my application. I have integrated Google map V3 & added other several WMS overlays, Vector layers etc. Every thing working fine. But I am facing big ...
Mohammed shafeek's user avatar
4 votes
3 answers
2k 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 ...
Shadin's user avatar
  • 469
4 votes
2 answers
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 OpenLayers when a user clicks/mouse over a vector. like, http://dev4.mapgears.com/bdga/bdgaWFS-T.html# any tutorial ...
Kumar's user avatar
  • 153
3 votes
1 answer
1k 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 ...
Frodo's user avatar
  • 2,407
3 votes
2 answers
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/...
user1899's user avatar
  • 1,427
3 votes
2 answers
4k 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 ...
kinkajou's user avatar
  • 4,406
2 votes
1 answer
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 ...
JimP's user avatar
  • 21
2 votes
1 answer
2k 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 ...
neogeomat's user avatar
  • 8,380
2 votes
1 answer
6k 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 ...
Kliver Max's user avatar
  • 2,032
1 vote
2 answers
2k 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()], ...
Kliver Max's user avatar
  • 2,032
1 vote
1 answer
3k 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 ...
Will's user avatar
  • 11
1 vote
1 answer
2k views

Routing using OpenLayers and pgrouting [closed]

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 ...
Ren's user avatar
  • 59
45 votes
3 answers
18k 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 ...
geographika's user avatar
  • 14.3k

1
2 3 4 5
9