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

learn more… | top users | synonyms

6
votes
4answers
10k views

Customizing Popups in Openlayers

Is it possible to customize the shape of popups in OpenLayers? For example, I am creating a pop-up using the following approach: var popup = new OpenLayers.Popup.FramedCloud( "popup", ...
1
vote
1answer
1k views

Openlayers zoom limit with Google Maps

When using Openlayers I am unable to achieve the same zoom level that Google Maps allows. For example, if I embed a Google Map in my web-page I can zoom in to the building level in a city. When using ...
5
votes
4answers
764 views

How to use OpenLayers for CrowdSourcing/ collect data?

I'm currently making my first steps in OpenLayers, trying to build a page showing a map where people can add data, which is then saved back in our database. (Background: Mapping of the distribution ...
2
votes
2answers
62 views

How can I create a new function inside a existent class in OpenLayers?

I want to add some functions inside a existent class in OpenLayers. For example, I want to add function A() and B() and a variable C inside OpenLayers.Layer.Vector. var X = function() { A() = ...
2
votes
1answer
77 views

Which conditions does the geoJSON file read from the server in?

I've added an alert to the function myReadFunction in order to detect function calls. As according to my observations, the function readMyFunction is called sometimes while I have been navigating on ...
2
votes
1answer
520 views

How to validate whether the BBOX strategy works successfully?

I want to send requests to our feature server that asks only data within the viewable map extent. So I've used BBOX strategy and HTTP Protocol as following code. mVectorLayer = new ...
2
votes
1answer
1k views

Problem with layer order in OpenLayers and Google styled maps

I'm using OpenLayers with Google styled maps. My biggest problem is KML polygon layer which needs to be under roads layer but it isn't (see prtscr). What am I doing wrong? This is my coding: ...
3
votes
2answers
51 views

Which OpenLayers highlights should I present to a non-specialist audience?

Hello Openlayers Experts/Users There is an event in my University that interests in Open Source Software. I am supposed to give a short presentation about anything related so I thought about giving ...
1
vote
1answer
1k views

How to overlay roads layer on top of all layers in OpenLayers?

I want to put roads layer (from any source, please recommend some..) on top of my KML polygons and base layer: baseLayer = new OpenLayers.Layer.WMS("OpenLayers WMS", ...
2
votes
1answer
314 views

Giving properties to Zoomify layers in OpenLayers?

I am using OpenLayers.Layer.Zoomify to show large image files and this works like a charm. The only thing is that I would like to add some options to that layer ( opacity and transitionEffect) but it ...
2
votes
1answer
164 views

How to get the number of objects at a pixel position?

Is it possible to get the total number of objects (Lines,Points) at a given pixel position in the map?
8
votes
2answers
2k views

How to resize a point on zoom out?

I've added a point on map like this but it is static in size. How to resize that point on zooming? Map on zoom out Any guidance and help is appreciated.
15
votes
4answers
1k 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: ...
0
votes
1answer
429 views

How to insert non-spatial data through WFS-T insert?

When i perform wfs-t insert operation using postgis database only spatial data and primary key gets inserted. Can anyone point me to some examples in which attribute data are also inserted along ...
2
votes
2answers
914 views

How to search and zoom to result using WMS?

I am making a web gis application (openlayers/geoserver) to display a layer of properties, I need to add a functionality of search in it based on the name of the owner. A list of similar names ...
1
vote
1answer
378 views

error performing wfs-t insert in postgres 9.1.4

I am getting error performing insert exception while performing wfs-t insert operation when i use postgres 9.1.4 and postgis 2.0. but i get successful insert when using postgres 9.0.1 and postgis ...
0
votes
1answer
501 views

How to pan (rather than zoom) when using a 2-finger drag on a Mac

Using Mac OSX, dragging the trackpad with 2 fingers performs a scroll of the web page, equivalent to using the mouse wheel. However, if the cursor is located within an OpenLayers map, the 2-finger ...
3
votes
1answer
569 views

How to hide some parts of an image layer with OpenLayers?

My Problem I'm currently displaying a layer image above a Google Maps base layer. I would like, when the user check/uncheck some checkboxes, that some parts of this image layer disappear, and the ...
3
votes
1answer
518 views

How to show a point on mouse over a hidden polygon?

Any suggestions on how to show a point on mouse over a hidden polygon? A single kml file contains two polygons and two points as in the image, I've hidden these polygon and point by setting stylemap ...
-1
votes
2answers
814 views

How to add point with current mouse position while mouse over on line feature?

I have a line feature in a vector layer "A", while i mouse over on that line. A point should be added to vector layer "B" with current mouse position. OR how can get lat lon of mouse position while ...
3
votes
3answers
333 views

Use Esri PersonalGeodatabase layers in OpenLayers

I would like to Know if it is possible to open a Personal Geodatabase of Esri with Openlayer with FileGDB_API_VS2010_1_2 Thank in advance Juan
9
votes
2answers
1k 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 ...
3
votes
5answers
3k views

How do I make KML overlays appear in OpenLayers at all zoom levels?

I need to overlay KML polygons on basic map in OpenLayers. I need that KML is visible on every zoom level. I did some coding, but my KML is not showing up. What am I doing wrong? Thanks. <!DOCTYPE ...
0
votes
1answer
146 views

Syntax for wfs-t request

I am in need of the correct syntax for performing transaction on WFS layer using OpenLayers. I have gone through many examples on the OpenLayers site and other examples, but can't figure out how to ...
3
votes
0answers
2k views

How to edit Attributes on WFS Layer through Popup?

I am working on a project for university. So far I have displayed WfsLayers which can be select from a panel, also I can click on my points whereupon a Popup will show up with some information which ...
2
votes
1answer
597 views

Connect JSON to GeoExt Application

I am returning a JSON to a GeoExt app and this is the code that is collecting the return, var control = new OpenLayers.Control.Click({ trigger: function(evt) { ...
1
vote
2answers
487 views

Distances and areas in Google projection

I have a mapping website used to capture polygons using OpenLayers in Google projection (900913) and storing them in sql server 2008 as geometry. The SRID on the sql geometry column is set to 900913. ...
0
votes
1answer
524 views

How to create KML file with OpenLayers?

I try to create kml file from features. My code var feature=myVecLayer.getFeatureByFid('filedata.1'); var format; function GetKMLFromFeatures(feature) { ...
1
vote
1answer
216 views

Is schema definition compulsory for WFS-T

Most tutorials on WFS transaction uses a schema and geom attributes in WFS request like this var wfs_layer = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new ...
2
votes
0answers
157 views

dojox.geo.openlayers roadmap?

I'm curious as to the future of dojox.geo.openlayers. Presently is seems only to be a solution for positioning widgets on the map but I can imagine developing a suite of map specific dijits such as ...
1
vote
2answers
606 views

Problem with panning and zooming in OpenLayers

I'm interested in detecting when a user moves or pans a map so that I can run a new query on a database based on their location. However, the following code causes the panning and zooming controls to ...
3
votes
2answers
2k views

Load layers only when zoom level is reached

I'm trying to load different layers based on the user zoom level with OpenLayers. I've seen some similar questions in here, but they load the layer and then hide/show it based on the zoom level. I ...
2
votes
2answers
778 views

How to render a multi-layered (raster + vector) map to a file (PDF, SVG or JPEG, PNG)?

When using OpenLayers I can compose a map with several layers which is displayed nicely by my browser, but I need to do the same server side (no browser composing the layers), and I'm waiting a image ...
2
votes
0answers
307 views

OpenLayers WFS - GetFeature Draw Circle

I am developing GIS Portal using OpenLayers, I use WFS GetFeature to retrive some datas like bellow: var layer = map.getLayersByName("pf_trecho_at"); var polygonLayer = new ...
2
votes
2answers
2k views

Openlayers: How to highlight a point on mouse over a line

Any suggestions on how to highlight a point on mouse over a line, I've read points from a javascript array, lines are drawn by using them and I want to highlight some points in that array by moving ...
0
votes
2answers
4k views

Differences between ExtJS and Dojo Framework

I have been using OpenLayers and the ESRI's JavaScript API and found that both using different set of JavaScript libraries have some implications on the quality of application that they deliver. Dojo ...
1
vote
2answers
3k views

How to get GeoJSON features using OpenLayers?

Can anybody explain how to get geojson features .Can somebody show way to get attributes from geojson text. OpenLayers.ProxyHost = "/gt/proxy.cgi?url="; var lon = 5; var lat = 44; var ...
1
vote
2answers
599 views

Handling points in openlayers

I have a several hundred points that I am showing on a map. At the moment, my method of adding the points seems inefficient. I create an array using the following approach: var features = [new ...
0
votes
3answers
1k views

OpenLayers: Error message 404 (Not Found)

I've created a map using openlayers contains osm, google layers and some vector features, On loading it shows two errors like: GET http://tile.openstreetmap.org/0/0/1.png 404 (Not Found). How to ...
3
votes
2answers
3k views

Detecting map changes using Openlayers

Is it possible to delete a vector layer when a user pans or zooms a map? I saw in the documentation that there is a function called onMapResize. Can this also be used to detect a pan change? I want ...
1
vote
2answers
801 views

User Input in Openlayers Problem

I thought you could give me some advice regarding my problem. I have a working WFS Layer and I want to be able to type in some text which then should be used as the filter value. Afterwards the map ...
2
votes
2answers
896 views

how to buffer inside a polygon in Javascript

I'd like to know if it's possible to buffer a polygon on the INSIDE only using OpenLayers and other Javascript tools (e.g. jsts). Here's what I found about the topic in general: Buffering INSIDE a ...
8
votes
6answers
13k 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 ...
0
votes
1answer
694 views

Openlayers shapefile polygons hover effect

I have shapefile polygons. I'm using OpenLayers with OpenStreetMap tiles. Is it possible to create hover effect which will show up info window with some informations about that polygons? Is it the ...
4
votes
1answer
2k views

How can I remove a layer from layerswitcher in openlayers?

I have several vectors and WMS layers in layer switcher.But i don't need these layers to be displaying in layer switcher.How can i remove these layers from layer switcher? Thanks in advance..
1
vote
1answer
1k views

Problems using geoserver and postgis to perform wfs transaction?

I have been following the tutorial for transaction. I am using apache webserver and jetty powered geoserver for hosting and using proxy.cgi file for bypassing XHR requests. as described in tutorial ...
4
votes
1answer
6k views

OpenLayers, zoom to vector layer extent

It seems quite simple thing to me, but I get an error. map declaration map = new OpenLayers.Map('map_element', {... projection : _projObj.mercator, displayProjection : _projObj.wgs84 } layer ...
1
vote
1answer
139 views

Using AndNav tiles storage as input for OpenLayers.TMS

Is there a possibility to use map tiles from AndNav (created wit Mobile Atlas Creator) that are in format: Mapnik\12\2241\1369.png.andnav (I know that 12 is the zoom level but don't have idea what is ...
1
vote
1answer
192 views

Web mapping with Openlayers

On a pedestrian wayfinding scenario, I need to drape some extruded buildings close to the road as the user navigates along the road on a 2D Map Background. I hope I can use OpenLayers and ReadyMap for ...
1
vote
1answer
144 views

How to “page” through a set of features and display an infoWindow for each feature?

In the ArcGIS Server JS API the Popup object may be defined against an array of features. In that case the Popup contains Next/Previous buttons to allow the user to "page" through each feature in ...