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

learn more… | top users | synonyms

41
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 ...
40
votes
3answers
8k 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 ...
36
votes
3answers
11k 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 ...
31
votes
3answers
11k 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 ...
20
votes
4answers
3k 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 ...
19
votes
6answers
3k 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 ...
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 ...
18
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 ...
16
votes
4answers
11k 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 ...
16
votes
3answers
3k 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 ...
16
votes
4answers
643 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 ...
16
votes
6answers
8k 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
892 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
8answers
9k 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 ...
13
votes
5answers
732 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: ...
13
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 ...
13
votes
6answers
5k 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 ...
12
votes
2answers
4k 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
1answer
604 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 ...
12
votes
4answers
6k 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 ...
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 ...
11
votes
9answers
2k 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" ...
11
votes
1answer
13k 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 ...
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 ...
11
votes
2answers
1k 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 ...
11
votes
4answers
1k 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 ...
11
votes
3answers
3k 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])) ...
11
votes
5answers
2k 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
3answers
777 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 ...
11
votes
3answers
3k 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 ...
11
votes
3answers
3k 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 ...
11
votes
1answer
1k 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 ...
10
votes
6answers
2k 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
2answers
9k views

Remove/Delete a feature from OpenLayers vector layer

I have an OpenLayers layer with several vectors on it. I know the OpenLayers Feature ID (e.g. OpenLayers.Feature.Vector_241) and I would like to know how to remove this feature and only this feature? ...
10
votes
4answers
16k 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 ...
10
votes
4answers
9k 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 ...
10
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
1answer
167 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
192 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
438 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
7k 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
2k 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
449 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
2answers
904 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
2answers
2k views

How to add a layer to SelectFeature without losing existing selections?

I'm using an OpenLayers.Control.SelectFeature for selections on multiple layers. However, when I add a layer using setLayer(), my selections on the other layers are lost. Anyone know how to work ...
8
votes
4answers
8k 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 ...
8
votes
3answers
3k views

GeoExt Vs Openlayers

OK: [ Openlayers + ExtJS = GeoExt] I am new to webmapping and still shopping around. I bumped into a Case Study with a gentle learning curve, matches my needs and it uses OpenGeoSuite. I got to learn ...
8
votes
5answers
3k 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
4answers
8k views

How do I get the coordinates of a click on vector feature/layer in OpenLayers?

I need to get the coordinate of the click when the user clicks on a vector feature on the OpenLayers map. The SelectControl only gives the feature that was clicked and not the coordinates of the ...