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

learn more… | top users | synonyms

0
votes
0answers
30 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
58 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
29 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
66 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
74 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
53 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
43 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
64 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
18 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
33 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
23 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
37 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
18 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
24 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
32 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
44 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
26 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, ...
0
votes
0answers
27 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
24 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
15 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
40 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
126 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
43 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 ...
0
votes
0answers
58 views

Print OpenLayers map with osm as background and all the vectors

I looking for an answer for a while, and i could not find a working solution. I am trying to exeport the OpenLayers map to some file - image or pdf, and i need all the background, include OSM and all ...
1
vote
0answers
76 views

How to drag a feature in Open Layers 3

I'm trying to replicate something that was fairly easy in Open Layers 2 in Open Layers 3, which is: dragging an existing feature to a new location on the map. In Open Layers 2 I just added a ...
0
votes
0answers
15 views

MapQuery (jQuery + Openlayers 2) unbind function

I have small gis app build on MapQuery, but development of this libary was stopped 2 years ago. MapQuery have bind function but do not have unbind one. bind: function(types, data, fn) { var ...
1
vote
1answer
59 views

Openlayers - ModifyFeature - How to label vertices with a progressive number

Apologize in advance as I am quite new in openlayer and javascript. I have a control ModifyFeature on a path vector layer. I would like the vertices to be rendered with a stylemap label showing ...
1
vote
1answer
110 views

Function to add layer with button click

I'm working with openlayers and geoserver to create a map and overlay layers. I need to add a layer when a button is clicked, but what I get is that the layer is added ( i can see it through the layer ...
1
vote
1answer
206 views

openlayers - export map to canvas problem

I am trying to make a export control to export the map as image file. I found this example: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html so i added the ...
3
votes
1answer
103 views

Can OpenLayers.Layer.OSM (the OSM tile servers) be used in production environment?

open layers has an openstreetmap layer built in : OpenLayers.Layer.OSM (are the tiles they use from openstreetmap servers or somewhere else?) can it be used in a production environment in terms of: ...
1
vote
1answer
40 views

Automatically refresh an ArcGIS93Rest layer in OpenLayers

I finally succeeded to import a gtfs-realtime feed into ArcGIS Server (used gtfsrdb.py and the created a script to automatically, every 30 seconds, to update the geometry of a table with the points). ...
1
vote
1answer
200 views

How to open a shapefile using Python in QGIS?

I have tried to open my shape files with the help of a tutorial (http://spatialgalaxy.net/2012/01/27/qgis-running-scripts-in-the-python-console/) but unfortunately I couldn't open my shapefiles for my ...
0
votes
2answers
112 views

How can I add attributes contained in JSON data to an OpenLayers popup?

I am working on a website using jQuery, Javascript, and OpenLayers. I am adding markers to an OpenLayers Vector layer using the following code: var pointLayer = new OpenLayers.Layer.Vector("POI ...
0
votes
0answers
9 views

Open Layer Plugin Images Informations

I'd like to know how to find informations about Open Layer Plugin Images. I need to know the date and resolution of the images. Thank you!
0
votes
0answers
16 views

Is there a way to create a named symbol in OpenLayers composed as either a multi-dimensional array or as a MultiPolygon?

OpenLayers provides a minimal set of "well-known" shapes which can be used as point icons: /** * Constant: OpenLayers.Renderer.symbol * Coordinate arrays for well known (named) symbols. */ ...
0
votes
1answer
36 views

OpenLayers - when zooming out OSM layer “slips” East

I have some code that displays an OpenLayers map composed of various layers (vectors, markers and features) on top of an OpenStreetMaps basemap. Everything worked fine until some months back. ...
0
votes
0answers
49 views

Spiderfy Unclustering Effect in OpenLayers

I am looking for a good way to display multiple features (with custom marker icons) all located at the same location. At all zoom levels I need to be able to see all markers at a location either all ...
0
votes
1answer
44 views

WFS not in position when using a Google Base Layer

I use two base layers and user can switch from OSM Mapquest to Google from a drop down list. However my WFS layer is not in position (shift of about 5 degrees to the East) when the base layers is a ...
0
votes
0answers
90 views

Working example of how to use openlayers 2.13.1 + ExtJS 4.2 + GeoExt 2

I've been working in GIS with Esri framework for over two years, so I have some experience in GIS. Now I'm working with open source (newbie) in a geoportal and I would like a some working code for ...
0
votes
1answer
149 views

Export map as image by Openlayers

I am using Openlayers to publish maps and Geoserver as map server. Now I can add more than one layer in Openlayers like WMS , Vector , WFS and Google Maps as base map. How can i export map's current ...
0
votes
1answer
52 views

Adding features/points/polygons to OpenLayer map

I'm trying to get a bunch of markers/points/polygons to show up on my OpenLayer map, but nothing seems to show up and the vector_layer seems to only have 2 SVG attributes when it should have way more ...
0
votes
1answer
37 views

drag and drop features of a WMS service using open layers

I have a WMS service,which is a point layer.Is it possible to drag and drop features of a this service layer through openLayers?
1
vote
1answer
62 views

geoserver and its layer is pointing(base url) to other server(hosting server) not my domain url

i am using Geoserver 2.4.4.my geoserver url is http://links-map.com/geoserver/web/ but when i click to loging button of geoserver its url is changed ...
0
votes
0answers
43 views

Can OpenLayers2 render a completely custom font-face in a text or point symbolizer?

I am trying to style a feature using a custom font. Geoserver has an extension allowing external graphics in SLD to be defined by a font. OpenLayers doesn't appear to support this particular ...
0
votes
1answer
132 views

How do I add multiple OpenLayers Vector Layer markers to a map using AJAX, JSON, and jQuery

I am attempting to parse a JSON file and place markers on an OpenLayers based map application. I am using jQuery to perform the AJAX and iteration on the JSON file. I am having a problem with the ...