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

learn more… | top users | synonyms

2
votes
0answers
104 views

When using OpenLayers plugins maps, can I have Longitude/Lattitude labelled on my grid when using the Map composer in QGIS?

Using OpenLayers plugins maps, can I have Longitude/Latitude labelled on my grid when using the Map composer in QGIS?
2
votes
0answers
495 views

How to set up multiple Content.ftl files in Geoserver?

So today i started to play around with the content.ftl file for geoserver to change around the popup style. In playing i've discovered that if i call in my content.ftl file which contains code for a ...
2
votes
0answers
1k views

GeoExt (ExtJs + OpenLayers): bug in IE9 when try to change map_panel from container A to container B

Techonology: GeoExt, which combines ExtJS with OpenLayers I am trying to dynamically change the app layout by changing a map_panel from container A to container B, and vice verse; basically, for each ...
2
votes
0answers
686 views

dateline issue: wrapDateLine with MapFile

I am using wrapDateLine properties for OpenLayers.Layer.WMS for handling dateline issues. The problem with wrapDateLine is that I am getting the same polygon repetitively around the wrapped map as a ...
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
11 views

OpenLayers map with Nominatim lookup function not working

I am trying to create a simple map with a search function, my minimal example is here: http://jsfiddle.net/TimLucas/vbaupe30/4/ For some reason the coords transformation after the script has received ...
1
vote
0answers
10 views

How to rotate a feature in openalyers 3

I cannot find any api to rotate a feature / geometry in openlayers 3. How do I rotate a polygon in openlayers 3?
1
vote
0answers
14 views

Disconnected Satellite map tiles usable with OpenLayers or other javascript api

I'm looking for satellite map, usable with OpenLayer (or with an other js api), with a good scale (at least 100m, MapQuest stops at 1000m) and avaible for a disconnected mode (avaible for download). ...
1
vote
0answers
12 views

OpenLayers 2.12 Cluster strategy labels are undefined

I am using a cluster and filter strategy for my map data. All the labels appear as "undefined." Here is my comparison filter: all_year_filter = new OpenLayers.Filter.Comparison({ Type: ‘~’, ...
1
vote
0answers
19 views

Center map to a KML placemark with OpenLayers

I'm using OpenLayers 3 to display my KML layer on the map. My KML contains two placemarks: one contains a linestring of waypoints and the second one is a point, like this: <kml ...
1
vote
0answers
45 views

OL3: Is there a getUrl function for ol.source.XYZ?

Problem: I am designing an ol3 plugin that needs to copy the URL parameter from ol.source.XYZ/ol.source.TileWMS to ol.layer.Tile on map initialization. TileWMS: As per the docs, this is easily done ...
1
vote
0answers
25 views

Google Maps Engine and OpenLayers

I would like to know if it is possible to use your own map created with Google Maps Engine with OpenLayers? Any examples?
1
vote
0answers
18 views

From Openlayers 2 report generation

Can u suggest how a JasperReport can be geneated by an user accessing an point (say a wireless tower in map) on a active layer done in openlayers 3. Here the architecture uses openlayers 3 and is ...
1
vote
0answers
50 views

Show a kml (which uses longitude and latitude EPSG:4326) in “google/OSM” projection (EPSG:3857) in open street map

I am showing a kml layer, over OSM. The points in the kml are latitude/longitude (EPSG:4326). I don't have to convert any points or anything, it all just works. Great! Now, the client also wants to ...
1
vote
0answers
23 views

What is the purpose of setting MaxResolution?

In map options specification like the one that follows, Help me explaining 1.the purpse of maxResolution, 2. How maxExtent works? I mean, If I add say, OpenStreetMap layer to a map with maxExtent ...
1
vote
0answers
27 views

OpenLayers trying to use cluster strategy and filter strategy on the same layer

I have a cluster strategy being used on a vector layer that is working correctly. However, when I try and add the filter strategy to the vector layer, the filtered data does not appear on the map, in ...
1
vote
0answers
21 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
28 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
12 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
32 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
14 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
15 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
37 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
73 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
20 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
27 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
61 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
52 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
31 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
106 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
55 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
32 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
88 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
23 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
97 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
89 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
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
38 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
92 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
26 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
59 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
84 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
75 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
131 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
147 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
36 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
28 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
33 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: ...