Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [openlayers-2]

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

5
votes
1answer
334 views

Using Digital Certificates using OpenLayers?

I'm developing a project using JavaScript, PHP and OpenLayers. A lot of maps are loaded using and HTTPS connection against an external OGC server. When I try to load the map using HTTPS, they doesn't ...
3
votes
2answers
1k views

Points on Google layer using OpenLayers

I want to load some points, whose lat-long values are saved in a .txt file over Google maps. The following is the code which I am using for the same. The Google map layer is successfully loaded if I ...
3
votes
2answers
12k views

Drawing circles on map using OpenLayers 3?

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. How do I do this work in OpenLayers? I heard that ...
1
vote
2answers
847 views

Apply Database based Rules to Openlayers

im trying to apply rules, where the data is fetched from an external database. This is my code: // create a new style and add rules var defStyle = new OpenLayers.Style({ ...
1
vote
1answer
1k views

How to overlay country map on Google world map in OpenLayers?

I am creating one map. So I want to overlay country map on Google world map. I am trying with the OpenLayers.Layer.wfs() function, but I am not getting perfect solution. If anybody knows the solution ...
1
vote
0answers
137 views

tilecache problem with LABELMAXSCALEDENOM

I use tilecache and mapserver and I have problem to showing labels. In mapfile when I use LABELMAXSCALEDENOM option the label layers not show in map. When I delete this option the layer renders ...
2
votes
1answer
677 views

How do I group layers in Mapnik?

I might be thinking about this all wrong, but right now I'm using Mapnik's OGC Server, and using that WMS with OpenLayers. How would I group multiple layers (say country, water, state borders) into ...
5
votes
1answer
2k views

Maximum number of Tiled Layers in OpenLayers

I'm developing an OpenLayers site where the client wants a dozen layers that can be individually turned on and off, which is a bit of a bummer in terms of performance. The data is PostGIS and static ...
4
votes
4answers
3k views

OpenLayers WFS vector layer rules don't get applied

I have a script which applies rules to wfs.vectors. The script works fine in Firefox and all the rules get applied, but somehow when I open the same file with the Internet Explorer 7 / 8 , only the ...
6
votes
2answers
3k 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 OpenLayers.LonLat(3,53)....
2
votes
1answer
470 views

Generating “theme gradient” legend graphics from MapGuide Open Source

In MapGuide Open Source, I've defined 10 layers, along with a theme for each. As I understand it, a theme represents how different data values are represented. For each theme, I picked two colors and ...
12
votes
2answers
3k views

Technical and usability differences between OpenLayers and Google Maps API V3 [closed]

I know this is supposed to be a wiki question, but the feature has been taken of the site What are the main differences between OpenLayers and Google Maps api? What are the strengths and weaknesses ...
5
votes
1answer
3k views

How to display WFS Layer from Geoserver using OpenLayers

I'm new in Geoserver and OpenLayers Could you tell me how to display GML Layer from Geoserver using OpenLayers ?? I Would like to show the labels for each Feature
3
votes
2answers
1k views

Querying data linked to a postGIS database

My project is coming along nicely! A brief background on my project. I have a world map that is colored to show the country of origin of the students at a college. Each color represents the number ...
11
votes
4answers
4k views

Is it possible to put Geoserver behind a proxy and access the WMS/WFS using OpenLayers

I just start to work with Geoserver and Openlayers and one of the main concerns of the project now is do not expose the geoserver web interface outside of the internal network. No access to www....
9
votes
4answers
3k views

GeoWebCache: misalignment of tiles

I'm trying to test simple web map based on PostGIS/Geoserver/OpenLayers stack on Windows Server 2008. When I load my WMS layer by: var gwctest = new OpenLayers.Layer.WMS( "gwctest", "http://...
14
votes
4answers
12k views

OpenLayers: how to style WFS layer with SLD file?

I'm experimenting with a simple web mapping service build on PostGIS/GeoServer/OpenLayers stack on Win 2008 Server. I overlay vector layer from PostGIS using: var Index1v = new OpenLayers.Layer....
7
votes
4answers
7k views

Plotting KML files onto a Google Map

I would like to show a map on my website. I have 2 different kinds of KML files that need to be plotted. One defines region boundaries. The other points within those boundaries. The region boundaries ...
7
votes
2answers
5k views

Displaying feature info in a popup

I was able to "combine my shapefile and CSV data have made a lot of progress on my project. Now I want to display the attribute data in a popup when I either click or hover over a country... I've ...
5
votes
1answer
320 views

GIS project advice

Hello: I have the following: Shapefile of the world with the boundaries of each country Successfully imported shapefile into PostGIS database Can display map of the world in a browser via Openlayers....
7
votes
1answer
1k views

Adding Panoramio Photos To An OpenLayers Map

I have a pretty well integrated OpenLayers map that I want to add photos from the Panoramio API to. Unfortunately, it seems both API's are under documented on this subject. I found one great tutorial ...
23
votes
4answers
5k views

Offline tiled map web app

I'm not sure whether to post this here or on Stackoverflow, as it's sort of a crossover. Let me give it a try. In the proposed HTML5 standard, there's the option of storing web application data in a ...
4
votes
1answer
2k views

Group Layers Do Not Display in GeoExt LegendPanel

I have a GeoExt.LegendPanel which is working just fine for layers which are not grouped. However, the grouped layers do not show any icon in the LegendPanel. I have tried to create the group layer ...
15
votes
2answers
5k 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 ...
2
votes
1answer
2k views

How To GetFeatureInfo From a GeoWebCached Layer in Geoserver

I'm really really struggling with this. I have created a map using GeoServer and OpenLayers. Things have been working out here and there, as I am new to all this so a lot has been just trial and ...
9
votes
1answer
4k views

OpenLayers with my own OSM data server

I've gone through the process of setting up my own OSM database / tile server by setting up PostGIS, importing the Planet.osm data snapshot (took a few days), and setup Mapnik / cascadenik, etc. I ...
3
votes
1answer
2k views

OpenLayers.Format.GML.parseFeature() with GML v3 data

I have a partial GML object with the geometry type polygon. The GML version must be 3+ since the coordinates are wrapped in the gml:posList tag: <gml:Polygon srsName="EPSG:25832" xmlns:gml="http://...
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/...
3
votes
2answers
5k views

Access-Control-Allow-Origin error in web map

I am having trouble getting a WFS layer working using Geoserver, OpenLayers and GeoExt. I get the following error: XMLHttpRequest cannot load http://10.0.0.155/geoserver/wfs. Origin http://10.0.0....
4
votes
1answer
1k views

OpenLayers Style Question … not working in IE

I'm trying to use OpenLayers to produce a map I'm using the following to style a layer in the map. It seems to work fine in Firefox but I get javascript error in IE 'symbolizer' is null or not an ...
4
votes
2answers
621 views

Data entry and manipulation using web pages

I am working on a project where we want to move a database from Microsoft Access to PostGIS, and we want the data entry forms to be web page based rather than forms within the Access database. I am ...
13
votes
2answers
6k 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....
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 ...
3
votes
3answers
4k views

Render vectors from OSM data in POSTGIS database

I'm a newbie when it comes to mapping application. I had successfully loaded my OpenstreetMap data in a Postgresql/PostGIS database. Now my problem is how to render the vector data (the POI's, ways, ...
3
votes
2answers
1k views

Using openlayers to render UK National Grid maps

Is there a way I can use Openlayers with a 1 pixel = 1m/2m/4m OS Grid map at high resolutions (i.e. OS Street View), but switching to a Mercator projection when you zoom out (i.e. for Google Maps or ...
7
votes
2answers
19k views

OpenLayers: Use scales instead of resolutions

Venturing around in the OpenLayers source code, it seems like everything related to zoom-levels is done using resolutions. Fair enough since this related directly to screen space. I would like ...
8
votes
9answers
2k views

WMS with Access Control (ACL) for different users? Or solution for thousands of points on web map?

I have a set of sites in the thousands. Not all users see same the same Sites on the map - thus ACL. Data is stored in a non-GIS database (mssql, ora, etc) and right now is retrieved with a standard ...
3
votes
2answers
8k views

OpenLayers and the legend

Is it a possibility in OL to add a legend (symbology) directly to (under) particular layer (not only switch on/off the layer)?
10
votes
3answers
3k views

Rendering images in OpenLayers?

My organization has a web application for displaying global and regional climate data and we're considering improvements to it. Our leading idea is to create an OpenLayers-based application to ...
4
votes
5answers
3k views

How to re-project coordinates in a gml on-the-fly in Geoserver?

I am using Geoserver to get featureinfo, but sometimes I want to re-project the native SRS in the output gml. The request is a (WMS) "GetFeatureInfo" with INFO_FORMAT: application/vnd.ogc.gml. I am ...
6
votes
2answers
3k views

OpenLayers filter: OGC (xml) or CQL?

While having not used filtering that much in OpenLayers, we are discussing which type of filtering we should use: The OGC XML filter or the more simple CQL filter? Are one of them more appropriate ...
8
votes
5answers
5k views

Is there a good library for WMS “Tile Servers”?

I am looking for WMS Tile Servers that I can consume with "OpenLayers". One: Are there any good library / resources online that collate WMS tile servers or where is a good place to start looking? (...
9
votes
4answers
12k views

How to Dynamically refresh / reload a KML layer in OpenLayers

I have previously asked this question to no avail so I thought putting this up here would be a good idea. Here is an example on: How to Refresh / Reload a KML layer in OpenLayers. Dynamic KML Layer. ...
43
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 ...