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

learn more… | top users | synonyms

2
votes
0answers
560 views

OpenLayers WMS overlay tile projection

We are using OpenLayers for our GIS Application and we have base files from Ordinance Survey for UK maps. For creating WMS layers, we are generating tiles of 256 x 256 through Sharpmap Library but ...
1
vote
0answers
16 views

Small discrepancy in scale reported by OpenLayers and GeoServer (after DPI fix)

I'm implementing some scale-dependent functionality in an application that uses OpenLayers 2.12 on the client and GeoServer 2.6.1 on the server. The legend is created in JavaScript and when a ...
1
vote
0answers
24 views

Is OpenLayers appropriate for creating maps of a fantasy world?

Please excuse my ignorance, I've been directed here from Stack Overflow where I've been looking at a variety of HTML5/JQuery packages to create a map of a fantasy world that exists in a game I ...
1
vote
0answers
16 views

Accepted data types for wps process JTS:difference in OpenLayers?

I am trying to use JTS:difference (present as wps service on GeoServer) using OpenLayers API. In OpenLayers wps-client example, I have replaced intersection with difference and I get illegal ...
1
vote
0answers
8 views

OpenLayers - vector layer not redrawing correctly when map zoom

I am loading an external GeoJSON file into a vector layer as described in the doc. I load it into the map normally: geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new ...
1
vote
0answers
18 views

OpenLayers.Control.WMSGetFeatureInfo in init function does not return item query

Good day everyone! In my struggle to get myself acquainted with OpenLayers and Geoserver, I have stumbled again on a technical problem for which I was looking for a solution for two days but I was ...
1
vote
0answers
23 views

SRS in GeoServer and OpenLayers

I have a shape file with projection WGS84,when I added it to GeoServer,the Native SRS is Unknown and for Declared SRS I wrote EPSG:4326. However, the shape file became a mass if opened in Layer ...
1
vote
0answers
6 views

OpenLayers 2: Transform the geometries for a list of feature objects

I am trying to export GeoJSON for a list of feature objects. The features are in EPSG:3857 projection and I would like to convert all geometries to EPSG:4326. I am perfectly capable of doing this by ...
1
vote
0answers
9 views

How to access ExtendedData/SimpleData from KMLfile using openlayers 2.x?

Is is possible to access SimpleData tag using Openlayers 2.x library? I have a KML file exported from QGis and it stores description data SimpleData tag "<>". i know that there is a way getting ...
1
vote
0answers
25 views

Geoserver WMS layer becomes pixelated in OpenLayers

I added a Geoserver WMS to OpenLayers, and if I zoom, the layers become pixelated. I've created the layers and SLDs (for symbology) with QGIS. Is the problem with the zoomlevels or elsewhere? var ...
1
vote
0answers
24 views

OpenLayer and MapServer: getFeatureInfo and Json

I'm using OpenLayer 2.0 and MapServer. I would query MapServer and I would that it return to me a Json file: On my page, I generated dynamic URL as: ...
1
vote
0answers
14 views

How to add a geoserver layer to openlayers?

I am trying to add a geoserver layer with 2 points on the openlayers. But I only get the map without the points. This is what I try: <html> <head> <title>OpenLayers ...
1
vote
0answers
16 views

How to set position of a Map on WebPage

I am using openLayers to create a map and I am using: map = new OpenLayers.Map('map') to create the map layer. But the map appears somewhere down in the web page. How can I tell where the map is to ...
1
vote
0answers
24 views

geoserver wms layer doesn't see

I've created a new layer, and styled with an .sld file (categorized by value). It works, if I check with Geoserver OpenLayer Preview, but when I citate for this in a .html It doesn't appear. Is the ...
1
vote
0answers
24 views

how to write the code to load tiff image on openlayer.layer.wms using mapserver ms4w

where did i get miss up?! here is my code inside the mapfile.map LAYER NAME "layername" STATUS OFF TYPE RASTER DATA ...
1
vote
0answers
18 views

can't get datas, from html file

I'm a quite new user of GeoServer. I've a created a layergroup, and it's work with the layer preview (OpenLayers). But if I save the source as a .html to the directory of data dir/www, and open it ...
1
vote
0answers
46 views

openlayers. Get Data from feature when clicked (Modify events)

I have a folowing test case and this issue: https://github.com/openlayers/ol3/issues/3008 http://jsfiddle.net/mindsupport/gyumL4q6/3/ When i drag it or click, there is no property oData in object. ...
1
vote
0answers
27 views

draw isoline from points

Is any spatial utility or methods are available for creating contour or isopleths on Oracle spatial? I want to create contour from point geometry show it on map (using mapserver) to site. Pleas share ...
1
vote
0answers
50 views

use geoserver as source of vector layer in ol3

I am using postGis and geoserver and Openlayers3 (OL3), I connected postgis table to geoserver and published my layer. I am using following code to get the layer as vector layer: var vector = new ...
1
vote
0answers
38 views

Longitude and Latitude Mixed Up on Map

I am trying to map a WFS layer with data originally coming from a PostGIS table, and using a OpenLayers 3. At some point in this process, I believe the longitude and latitude coordinates are getting ...
1
vote
0answers
27 views

Web Application with data editing capabilities by users stored in Geoserver

I have been using GeoExt/Extjs/Openlayers/Geoserver for some time.I have created a web application for mapping features in a county.I wanted to know whether there is a way I can add (edting/Addnew ...
1
vote
0answers
51 views

OpenLayers 3 modify end event

I want to save the geometry data after I modify it, so I need an event that fire after I finish to modify the feature. I use the following from this post: listener modify interaction var ...
1
vote
0answers
19 views

Overlap feature's style with layer style

I have a Vector layer, where each feature is created using a image with different rotations. var point = this.__getFeaturePoint(); featureStyle = { externalGraphic: this.__getImageURL(), ...
1
vote
0answers
74 views

QGIS Crashes with OpenLayers plugin

I've just updated to QGIS Brighton on Ubuntu 14.04, and I've noticed that when I open Openlayers plugin, in order to load google layers, the whole program suddenly crashes. The only log I see, when ...
1
vote
0answers
50 views

How do I display GroundOverlays in OpenLayers 3 (from a KML)?

The back-end I'm working with serves KMLs in the following format (data is stripped for confidentiality): <?xml ...> <kml ...> <Document> <open>1</open> ...
1
vote
0answers
68 views

How to overlay Google Map in a standalone PyQgis application?

I have created a standalone PyQGIS app (within Python itself, not a plugin) with PyQt and PyQGIS API. It generates my map really well. I would like to overlay a Google Map layer as base map just like ...
1
vote
0answers
20 views

Authenticate to geoserver using openlayers 2

I want load layers from geoserver using openlayers in php page. How I should do it? Maybe can give ane code examples? Layers not public, need authentification.
1
vote
0answers
27 views

Adding a google Maps Layer to OpenLayers 2.14

I have a well-working map consisting of several layers in OpenLayers retrieved from geoserver. Now, I want to add a Layer from google maps. Since I did not find any working explaination in the web - ...
1
vote
0answers
71 views

Parameters in a SQL View (Geoserver) and WFS Layer (Openlayers): can't get them to work properly

I'm relatively new to GIS, openlayers, geoserver and javascript in general. I have the following problem: I need to display a choropleth map by coloring the different areas in my map based on a ...
1
vote
0answers
20 views

Adding layers to an OpenLayers map from a WPS process automatically after processing

I want to process two layers visible from a an OpenLayers client map interface such as Geonode and then add the result of the output directly to the map automatically after the processing is finished. ...
1
vote
0answers
50 views

WMS or WFS for selecting features and show attributes?

I am beginner in MapServer and Openlayers. I want to be able to select features and show their attributes by user click. I don't need to edit any feature. I know this is possible with WFS, but ...
1
vote
0answers
54 views

How to add a WFS layer to an OSM base layer from GeoServer

I'm sorry if I'm repeating what has been asked several times! I'm a novice in open layers and java script , please can some one tell me where i am making a mistake , below is the code which i used ...
1
vote
0answers
35 views

Retrieve list of all features and values from raster layer (Geoserver and Openlayers)

I'm trying to retrieve a list of all values from a raster layer (GeoTIFF) in geoserver (2.5.x). I tried to modify the code from http://trac.osgeo.org/openlayers/wiki/GetFeatureInfo but I can't seem ...
1
vote
0answers
68 views

What is wrong with my WFS-T protocol setup?

So I want to transfer some Vector Layer Features from javascript code to my geoserver and then to postGIS, my code looks like this: saveStrategy = new OpenLayers.Strategy.Save(); ...
1
vote
0answers
84 views

Add WMS from geoserver to openlayers with OSM baselayer

I am new to javascript/the openlayer. Maybe you can provide me with some help. I would like to add a wms layer (BLD_504) from dwasa (workspace) locally. The code is as follows: <title> ...
1
vote
0answers
116 views

How to get feature on vector layer in Openlayers 3?

I'm try to get feature of a vector layer, but I'll have 3 or more Vector layer. When I click the map, I didn't get the feature. My vector layer definition; var vectorAltAlan = new ol.layer.Vector({ ...
1
vote
0answers
32 views

How to emulate OpenLayers button click in C#

I'm trying to call a click of a user using C # with the following code ( " C # : GeckoWebBrowser.Navigate ( javascript : void ( Document.getElementById ( ' idOfElement ' ) .click ( ) ) " ) ; ...
1
vote
0answers
27 views

wrong layout when using Openlayer plugin

I'm drawing a simple map and I noticed a weird problem. Very briefly: I have a simple shapefile (a region) and the Google Satellite layer of the OpenLayer plugin activated on my map canvas. On the ...
1
vote
0answers
29 views

Saving Changed Features from OpenLayers does not work because GeoServer claims Layer to be read-only

Trying to save a few changed Features in OpenLayers back to my geoserver (2.4.4) with saveStrategy.save(). Features don’t change. What I get in the geoserver protocol is: ...
1
vote
0answers
44 views

Openlayers 2.13 not calling correct XYZ tiles from couchdb?

End goal is to be able to access a pouchdb of map tiles on phone off-line that has been synced from remote couchdb of map tiles. Openlayers is not calling the correct document from the couchdb to ...
1
vote
0answers
23 views

Openlayers permalink not working

Basically I have a permalink which contains the co-ordinates of a temporary layer when I enter this permalink into the browser the layer shoes and then goes. I used use a vector layer the permalink ...
1
vote
0answers
61 views

Help embedding Openlayers map in Eclipse BIRT report

i have this code, it displays the zoom buttons only but it doesnt display my map. what could be the problem? <html> <head> <script ...
1
vote
0answers
118 views

How to disable Google map zooming animation effect?

I am using Openlayers mapping library in my application. I have integrated Google map V3 & added other several WMS overlays, Vector layers etc. Every thing working fine. But I am facing big ...
1
vote
0answers
88 views

OpenLayers, symbol every 100 pixel on line symbolizer

First: the above banner links this to How to use a sld file with Openlayers using OSM data? , but look update2. I would like to add rail-road hatching to my OpenLayers map with a Symbolizer. Example ...
1
vote
0answers
100 views

Triggering events when loading and finished loading from WMS

I'm currently creating a webgis application using OpenLayers 3.0.0, and I'm trying to display a loading gizmo when loading layers from a WMS. I've found examples for OL 2.1.0 that registers ...
1
vote
0answers
73 views

LayerSwitcher() not working with Group Layers in Geoserver

I created a layer group. then previewed the layer using the GeoServer Layer Previewer and it all worked nicely.But Layer switcher is not working properly.layer switcher doesn't show any layers Here is ...
1
vote
0answers
40 views

How does TimeSlider Control work in OpenLayers 2?

I would like to use the TimeSlider control of Openlayers in version 2 for WMS-Time, but there is no documentation or examples. Could someone help me understand how this control works, I would ...
1
vote
0answers
53 views

How to change color of points dynamically from a geoJson in openlayers

I am new in Openlayers and what I am trying to do is to dynamical give a color to some points read by a GeoJSON file. I am taking inspiration by this post How can I add an infowindow to an ...
1
vote
0answers
34 views

Adding GeoRSS feed as point layer using OpenLayers?

There may be a simple answer, but I have been looking on the internet for answers and trying different things. I want to display this RSS feed as a point layer in OpenLayers 2.11. Can anyone please ...
1
vote
0answers
29 views

Save Feature is not working for Line feature and Polygon Feature

I am using following code to save feature but that is not working for Line feature and Polygon feature to save new feature on the relevant layer type. But the same code is working on Point feature ( ...