OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.
35
votes
7answers
5k 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 ...
33
votes
3answers
8k 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 ...
33
votes
3answers
4k 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 ...
21
votes
3answers
3k 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 ...
19
votes
7answers
6k 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 ...
19
votes
4answers
2k 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 ...
17
votes
6answers
2k 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 ...
16
votes
4answers
547 views
Advice on a generic open-source package roadmap
I just wanted to ask an advice from the open source GIS gurus on a recommended stack to use for my envisioned project, as I do not fully understand the limits of the possible with most packages. I ...
15
votes
4answers
3k 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 ...
15
votes
5answers
5k 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', {
...
15
votes
4answers
558 views
What are some high-profile websites that use OpenLayers and PostGIS?
I think there are many convincing arguments for using PostGIS but I am interested in showing people examples of websites that use PostGIS and OpenLayers.
Some examples that I have seen are:
...
14
votes
3answers
2k 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 ...
12
votes
4answers
267 views
Comparing two maps with nice web interface?
Is it possible in Leaflet or OpenLayers to compare two maps with a bar to slide between the two?
Examples include:
...
12
votes
2answers
3k 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 ...
12
votes
2answers
1k views
Technical and usability differences between OpenLayers and Google Maps API V3
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 ...
12
votes
2answers
2k 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 ...
11
votes
8answers
6k views
How to Create Animated Cluster Markers in OpenLayers/Leaflet?
I want to use Leaflet due to the smooth transitions which Openlayers seems like they can't match. I specifically require the ability to cluster markers with custom styled marker groups.
The best ...
11
votes
5answers
4k views
How to use ST_Intersection?
Here's a quick summary about what I'm trying to do: I have 3 tables in Postgres, 'a' and 'b', each have a Polygon column, and 'c' has a Point column. What I'm trying to do here is to get the ...
11
votes
5answers
1k views
Free map service for private web applications
Background
Looking to display a map (for internal use only) on a web page. The application must be able to add custom layers (without sending the data to the map service host):
Municipal zones ...
11
votes
1answer
517 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 ...
11
votes
4answers
4k 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 ...
11
votes
2answers
2k 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 ...
10
votes
9answers
1k 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" ...
10
votes
6answers
1k views
Should I use a CMS for my web mapping application?
For my web mapping app, I am using GeoServer as server, PostGIS as spatial DB and OpenLayers on client side (as well as other JS libraries). The map is composed of base maps and vector layers. One of ...
10
votes
3answers
935 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 ...
10
votes
3answers
589 views
Web mapping software for a huge raster time series?
I'm an ArcGIS Desktop user who is stepping into the world of web mapping for the first time. Following advice I found here on GIS.SE, I started with the free tutorials from OpenGeo.
However, I ...
10
votes
3answers
2k views
Open source alternatives to Google's StreetView engine?
I am looking to create an open source javascript app using either Leaflet or OpenLayers. Is there any way to implement panoramic views (similar to Google's StreetView) into either of these, or any ...
10
votes
3answers
2k 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 ...
10
votes
3answers
985 views
Options for displaying PostGIS rasters in OpenLayers
This question is similar to an earlier question about displaying vector data in a web-map. I want to have a basic web interface which uses OpenLayers and can display raster data that is currently in ...
10
votes
1answer
111 views
Stratified OpenLayers Clustering
I have an OpenLayers map with point clustering, but I want to apply a much finer granularity to the data represented in the map. Specifically, I want to stratify the clusters according to an ...
10
votes
1answer
124 views
OpenLayers API Documentation vs. Developer Documentation
The OpenLayers web site provides two sets of reference documentation:
API Docs: http://dev.openlayers.org/apidocs/
Developer Documentation: http://dev.openlayers.org/docs/
For most classes, the ...
9
votes
3answers
306 views
In what coordinate systems do true circles appear round?
Please excuse what is probably an obvious question from a relative newB to GIS -- this seems like it should be a snap.
I've been developing in Gmaps for awhile and am switching to OpenLayers but am ...
9
votes
1answer
5k views
How to apply custom Google map style in OpenLayers?
Recently I stumbled upon interesting article showing potential of adding custom styles to Google Maps. Some examples of styled maps can be seen here and you can design your own from scratch here.
...
9
votes
3answers
1k views
Can one render maps from 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 ...
9
votes
2answers
348 views
Is there a way to draw a straight line on a map which also represents a straight line on the earth surface?
I'm trying to understand more on projections.
In this example, why must one calculate the curvature of the earth (great circle) if the map is already projected? Is there a way to draw a visibly ...
9
votes
1answer
7k views
Programmatically creating a vector feature in OpenLayers
I want to create a vector feature, programmatically, on my map. It's supposed to be in the A4-paperformat, for showing a sort of print preview.
I've created a control for handling this, but now I'm ...
9
votes
3answers
5k 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 ...
9
votes
3answers
2k views
How to merge two Polygons in OpenLayers?
I have two polygons.
polygon1 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing1]))
polygon2 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([linearRing2]))
...
9
votes
2answers
492 views
What's the best way to display thousands of polygons in Openlayers?
I am trying to create an Openlayers map that will display thousands of polygons. And when the user clicks on each, I want some of the metadata to display. Working with this large of a dataset seems ...
9
votes
1answer
859 views
Dealing with overlapping features in OpenLayers
If users create a polygon feature that completely overlaps another one, like this …
… then there's no way you can select the inner feature, i.e. the one that's overlapped by the other. I'm ...
8
votes
5answers
2k 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? ...
8
votes
3answers
6k 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 ...
8
votes
2answers
848 views
Whats better for selecting? WMS or WFS
I need to select from a layer(s) and I am wondering what way I should serve the layer.
The requirements are that I need to be able to select multiple features at a time by drawing a box or polygon. ...
8
votes
3answers
907 views
Best way to animate radar data in openlayers
I have a project using OpenLayers which displays radar data on a map. The radar data itself is just a bunch of polygons each of which is filled with one of 6 possible colors. The goal is to animate ...
8
votes
2answers
889 views
Map hosting options
I'm trying to figure out how to best get started on a web-mapping project, and am wondering about where I should host my maps from.
In terms of my skills, I'm quite good at desktop mapping and ...
8
votes
5answers
1k views
How do I serve data in a sqlite database on a shared web host, like GoDaddy, onto a GIS web map?
I am new to the web mapping arena. I currently am managing a website and would like to add a mapping portion to it, mostly for some simple viewing and querying of a small number of layers.
For ...
8
votes
4answers
6k 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. ...
8
votes
2answers
340 views
Best design for Open Source Python / PostGIS prototype
I am writing a data intensive web application that is delivered through apache. My question is about how to best arrange processing given that there are multiple options.
I have at my disposal ...
8
votes
2answers
490 views
Resize polygon along one axis
Using the following example I'm able to resize by scale and origin.
polygonFeature.geometry.resize(scale, origin);
vectorLayer.redraw();
But does anyone have any suggestions or sample code ...
8
votes
2answers
529 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 ...

