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

learn more… | top users | synonyms

0
votes
0answers
19 views

OpenLayers: Show a styled title similar to pop-up but always visible?

I need to basically create boxes with titles inside, set to different styles (different coloured box, different FontAwesome icon etc.) set to specific points on the map, ideally replacing the label ...
0
votes
0answers
35 views

Animation and zooming in OpenLayers

I need your help. I'm learning to use OpenLayers (version 2.13.1) and I've made some custom buttons to test the controls. Now, I have a button which is bound to a simple setCenter() method that works ...
2
votes
0answers
38 views

Thematic mapping [closed]

What is the best way to develop thematic maps? I would like to generate pie charts and fill polygons with different colors depending on a parameter value. I'm working with ExtJS 4.2 and OpenLayers.
0
votes
0answers
37 views

Digitizing with OpenLayers Plugin seems incorrect

I am attempting to digitize some buildings based on floor plans using QGIS. To do this, I have taken the blueprints, georeferenced them against openlayers bing aerial plugin. I then digitized the ...
2
votes
2answers
51 views

How to insert coordinates to url

What would be the approach to show and dynamically update the map coordinates in the url like stamen is doing it? Are there any built in functions in OpenLayers, what other techniqes could I use or do ...
0
votes
0answers
39 views

How to load WMS Layers automatically when using heron MC

I'm using Heron MC with extJS, GeoExt, and OpenLayers 2.13. At first I try the default configuration of the Heron MC and every layers load automatically when I opened the webpage. However, when I ...
-3
votes
1answer
68 views

Is it possible to access geoserver wfs layer from localhost:8080 in to web application? [closed]

I want to add a WFS layer. I am trying to get WFS layer from localhost:8080 geoserver. but I am getting eoserver DateLineWrap in Openlayers.js file...
2
votes
0answers
25 views

How would I get number of tiles loaded, and total number loading?

So new to OpenLayers 3, and I'm trying to create a "loading bar" to indicate how much of a layer has loaded. I'm thinking of making it based on the number of tiles loaded so far divided by the total ...
0
votes
1answer
26 views

Zooming to specific polygon boundary Openlayers

I want to zoom to specific polygon boundary of some polygon layer. How can I do this.The map layer is WMS layer.
2
votes
1answer
35 views

How to use POST method with Overpass QL and OpenLayers?

I am using OpenLayers and Overpass QL with GET method to retrieve data from the Overpass server. Some URLs tend to be very long and hence get rejected by the Overpass server. To get around this, I am ...
0
votes
0answers
21 views

random point in geometry (JavaScript, OpenLayers)

I have a standard OpenLayers geometry object - in 90% of cases it is a polygon and in 10% a multipolygon. I need to get a random point in that geometry. I cannot just tase a random border point (using ...
0
votes
0answers
17 views

Which are the differences between using javascript openlayer and gwt-openlayer API?

I am about creating a web app which should use openlayer API, but I would like to use GWT too. So I have the following questions: Is it the same to use GWT-openlayers API in terms of functionality ...
0
votes
0answers
17 views

Wrapdateline support in Openlayers for Bing baselayers

I have setup the Bing map as the base layer. I want to have a continuous horizontal panning, so I have added the wrapDateline option in Openlayer for OpenLayers.Layer.Bing map type. However, afer the ...
1
vote
1answer
26 views

Why does geoserver layer disappear when baselayer is false?

I am trying to overlay a layer from Geoserver on an OpenStreetMap base layer. If I load the Geoserver layer as a base layer, I can see it - but if I set baselayer to false it disappears. My code is: ...
2
votes
0answers
40 views

How to install Proj4js.js in my localhost directory?

I'm developing a GIS website for vineyard management. I am using Openlayers with the WMTS IGN (French institute for geography) datas. It works fine. I also would like to add the possibility for the ...
1
vote
1answer
46 views

Error:getFeatureFromEvent is not a function - Openlayers Multiple layer selection

OpenLayers.Control.SelectFeature works well when I try to select single layer from map. But it throws error as getFeatureFromEvent is not a function when I pass a collection of layers to it. ...
0
votes
1answer
27 views

problem labelling cluster features in openlayers

I'm trying to label a vector layer with clustered points in OpenLayers. When the feature is clustered I want to show the value of an attribute of all the features included in the cluster. I've tried ...
2
votes
1answer
48 views

OpenLayers: add WFS layer from GeoServer and OSM

in a OpenLayers HTML file, i'd like to request the default tasmania data of my GeoServer (runs on localhost) and add them as an WFS Layer. The second layer should be an OSM-layer. This is my code up ...
1
vote
1answer
121 views

Development guide for beginner? [duplicate]

Im new to GIS and mapping, and I need to learn how to create web map application for my project. I'm really confused on what to use. I have read PostGIS, OpenStreetMap, and Openlayer. I'm wondering ...
0
votes
1answer
73 views

Problem with snap layer when in name is space

I'm trying to make a option, where user can choose layer to snap. All is okey when layers names are without space, but if in name is space (like 'something layer name') snapping does not work. How can ...
3
votes
0answers
22 views

Opposite than normal behavior in zoom with restricted extent and vector base layer

My map has OSM base layer and i have restricted its extent. This worked normally. Recently i added a blank baselayer so that the only overlays could be shown. base = new OpenLayers.Layer("Blank", { ...
3
votes
0answers
36 views

How to update location via a data streame in openlayers or Leafletjs

I'm developing a application where I need to real-time update a Location of a Map using a data stream, I'm planing to use web-sockets, Are there any guides I can follow? Or can you guys direct me in ...
0
votes
0answers
31 views

Open Layer and Vector seems not working

I configured geoserver (2.4.4) with a layer in EPSG:4326 projection. In my client side I added the openLayer code to read and show this layer as in the following: map = new OpenLayers.Map ("map", ...
0
votes
1answer
63 views

How to create switch the layers option using geoserver?

I did create some maps with three layers using layer groups with the help of some tutorials but i dint get the switching options like others. How to get that + mark locates in the right top corner ...
1
vote
1answer
33 views

Uncaught TypeError during proj4 transformation

I get: Uncaught TypeError: Cannot read property 'x' of undefined at proj4js-combined.js:2720 While executing this code (transforming polygon from one system to another): Proj4js.defs['EPSG:3765'] = ...
3
votes
1answer
70 views

Is there a way to know if an error occurred while loading a WMS layer, in OpenLayers 2?

First of all, I already asked this question in stackoverflow. I don't want to spam by asking again here. But I think the question fits better in gis.stackexchange. I am sorry for the replication. Feel ...
0
votes
3answers
82 views

Transforming polygon using Proj4js

I am reading the Proj4js User Guide but cannot quite grasp it. I import the library <script src="lib/proj4js-combined.js"></script> Then, function init() { (...) // reading from ...
2
votes
1answer
54 views

how to open geotiff as base layer on openlayers

i want to add a geotiff image as base layer on openlayers : copy my image.tiff in a directory and open it with openlayers directly without using a cartography server.
0
votes
1answer
18 views

Unregistering OpenLayers events?

map.events.register('click', map, fucntion(e){alert('on')} ); map.events.unregister('click', map, fucntion(e){alert('off')} ); Looks easy enough but un-registering just won't trigger. I ...
1
vote
1answer
44 views

Increase max zoom level in OpenLayers

I'm developing a map in an Android WebView, using OpenLayers and a WMS Service. I can only zoom a certain amount of times (which I would like to increase). My code is: map = new ...
0
votes
0answers
12 views

what are the other main components of GeoServer based system? [duplicate]

I am trying to build a system for publishing transit flying charts online through a web site which uses geoserver behind it and I am wondering which other components should I consider, like ...
0
votes
0answers
31 views

How to change the type of a layer attribute

I want to publish some point on an open layers map I used Postgresql with the geometric column and geoserver using WFS to connect with openlayers but I can't add Postgre or any geographic server to ...
0
votes
2answers
74 views

Returning string from OpenLayers.Format.WKT write? [closed]

How to return a string from OpenLayers.Format.WKT write this.innerHTML = new OpenLayers.Format.WKT().write( layer.selectedFeatures[0] ); my full code is like this please suggest me... ...
0
votes
0answers
21 views

Openlayer 3 - Layer Drawing order

I have a map with various vector layers, and I would like to be able to decide which layer goes on top of which. I thought that inserting the layers in the map layer group using: ...
0
votes
2answers
37 views

How to track ajax WMS requests in OpenLayers interface?

I'd like to track WMS requests on my openlayers web interface. How is it possible to log on my server or in Google Analytics every WMS requests (GetMap and GetFeatureInfo would be enough)? Then I'd ...
0
votes
0answers
24 views

How to make layer group folder into a check box to turn off all layers inside?

I would like to create a geoext layer tree containing layer groups which can check or uncheck all the layers within them. Would anyone know if this has been done or can be done? I was thinking about ...
0
votes
0answers
47 views

OpenLayers displays nothing when I try to add WFS Layer from Geoserver - can't work out where the problem is occurring!

I hope someone can help me with this problem as I'm very confused! I recently downloaded the IHO Sea Areas shape file from http://www.marineregions.org/downloads.php One of my colleagues has ...
0
votes
0answers
22 views

Openlayers stylemap default style doesn't render until mouseover in IE 7/8

I'm using Drupal 7 Openlayers, and adding my own custom behavior. I have no trouble getting my code included, and it works well on other browsers. But in IE 7/8, the layer features render with a null ...
0
votes
0answers
25 views

Draw elevation from mouse move

I recently tried this example but unfortunately It's not working, I don't know why (I've tried as same as possible) My output is I want to use WMS data from geoserver and applied it in CesiumJs or ...
1
vote
0answers
34 views

Openlayers filter strategy on wfs deactivate problem

I have a filter control which works nicely. However, when I try to reset/remove the filter, I don't get the original features back. The debugger shows my features array as still only being the reduced ...
0
votes
0answers
46 views

Why do my geowebcache tiles not work in openlayers client?

var options = { resrictedExtent: restrictedBounds, maxExtent: restrictedBounds, units: "m", projection: "EPSG:31467", ...
0
votes
0answers
31 views

passing tif image as input to openlayers code (wps implementation)

how to pass dem(tif) or raster layer as input to the openlayers ... //OpenLayers.ProxyHost = 'proxy.cgi?url='; OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; //OpenLayers.ProxyHost = ''; var map, ...
1
vote
0answers
29 views

how to make a layertree with multple nested nodes?

On a previous question I asked how to get two levels on a layermanager. The response provided there was what I was needing at that moment. Now, I´ll like to create a little more complex structure in ...
0
votes
0answers
26 views

How to register geometries using OpenLayers and GeoServer in PostGIS?

I put a Editing Toolbar on my page using Google Maps Api as base layer. I want to register lines and points in PostGIS. But I want to know how I can get the longitude and latitude of gemotria (line ...
0
votes
0answers
16 views

Geoserver layer rotation problem

I have a mapping system setup with PostGIS, Geoserver 2.4.1 and OpenLayers 2.12 I am trying to use the geoserver vendor specific parameter "angle" to rotate a layer, and it seems to work fine. ...
0
votes
0answers
24 views

OpenLayer Maps not zooming

Initially the map zoom is set to 8, and that's the only place in the code i can change the zoom, any other location doesn't work. I have a function that draws a marker and a route on the map (works ...
0
votes
2answers
44 views

OpenLayers WMSGetFeatureInfo on MapServer WMS layer

I am trying to get a WMSGetFeatureInfo request to work on my MapServer WMS layer but I am not sure how to correctly configure my map file and the request in OpenLayers. I have setup a jsFiddle with ...
0
votes
0answers
142 views

Add Legend with GeoExt in OpenLayers

I need help with legend display for a WMS layer. So far I did this: - insert a Google Map Hybrid layer - insert a layer called "Vladaia" for creating the page - insert CQL filter for WMS layer - ...
0
votes
0answers
22 views

feature position on non-Geo-referenced Image

I use OpenLayers to show Map , when im creating the map, i want to show map image with an ImageLayer and VectorLayers, the image is non Geo-referenced. The use case: i receiving a map image url from ...
0
votes
1answer
45 views

Combining Hover and Click events in OpenLayers

I can specify event callbacks in an OpenLayers layer: var vectorA=new OpenLayers.Layer.Vector("A"); vectorA.events.on({ "featureselected": callback }); and I can specify event callbacks in a ...