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

learn more… | top users | synonyms

1
vote
1answer
9 views

Chained rendering to create contour gives correct WMS but incorrect WFS using openlayers

I'm trying to create a contour as vector layer using this example: http://boundlessgeo.com/2013/01/chaining-rendering-transformations-in-geoserver/. My setup is GeoServer v2.5.3 and gwt-openlayers. ...
0
votes
0answers
24 views

how to increase geowebcache performance with openlayers

I have installed geowebcache and cached polyline data. And I am using my geowebcache data on OpenLayers map. var polyline = new OpenLayers.Layer.WMS( "Lines", ...
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 ...
0
votes
0answers
26 views

client side vector data cache

I'm trying to design a web application where point clustering run server side using python script. Response from server side script is a Geojson data. The client script is Openlayers. Can open Layers ...
0
votes
0answers
59 views

Leaflet vs Openlayers vs Geoserver for overlapping polygons application

I have 3 layers of vector polygons(about 80 polygons - 1MB geojson each but I haven't simplified any yet) displaying school territories (kindergardens, primary and secondary education) and I want to ...
0
votes
0answers
24 views

In OpenLayers, WMS layers get dislocated on window resize

In a low zoom level, like 3 (my max extent), my WMS layers are dislocated relatively to the rest of the map. I think this happens because on the left side of my page, I have a menu that I can ...
0
votes
0answers
23 views

OpenLayers Map does not load entirely in Firefox

My OpenLayers map does not load entirely in Firefox. It seems that it only loads the OSM tiles where there are no other DIV elements (please see the images). When I perform a zoom, it loads ...
1
vote
1answer
27 views

Openlayers dynamic viewport width and height assignment

I display an openlayers map in a html page by placing it in a tag and assigning a css class to it so as to set its dimensions (map size and map bounds). i then attempt to dynamically create a style ...
0
votes
0answers
38 views

Cross Origin Request Blocked

My Gis Client Program, using OpenLayers, and my GeoServer were running on the same server, everything worked fine. Now, I started a new instance of My Gis Client Program on another server. There, I ...
1
vote
0answers
27 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 ...
0
votes
0answers
17 views

How to add 'title' or tooltip to navigationHistory in openlayers

I want to add tooltip/title to NavigationHistory Control in openlayers. I tried 'title' property but its not working. My code is var pDiv=document.getElementById("maptools"); var ...
1
vote
1answer
51 views

OpenLayers 3 - submit SLD text in wms call

Earlier versions of OpenLayers allowed for the submission of the text of an SLD in a call to the server side WMS. This describes the procedure, and cautions that, if your sld is too long, you ...
1
vote
1answer
29 views

create spatial data on the fly for a timeline application

I 'll need the support of the experts on this: Facts: Data are stored in a MySql db with no spatial data. instead there is a uri of gazetteer service which will return spatial data in json format. ...
2
votes
1answer
72 views

OpenLayers forEachFeatureAtPixel finds point when clicking in the lower part or below the symbol

I have OpenLayers 3.0 map with vector layer (geojson data) and try to add tooltip, when the point on map is clicked. I use the forEachFeatureAtPixel (edit: was allFeaturesAtPixel) function for finding ...
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
2answers
78 views

Openlayers 3 spyglass example (advanced functionality)

I would like to use openlayers 3 spyglass example inside my project. The problem is when I want to use selection for layer, which will be inside spyglass circle. I can't get it working, I don't know ...
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. ...
2
votes
1answer
26 views

OpenLayers Only draw features in a vector layer within view

I am dealing with a kml that I am importing into openlayers as a vector layer. This kml has many features so it dramatically slows down the web app. I would like to make it so only the features within ...
0
votes
1answer
50 views

Defining attribution in OpenLayers3

Can't define options for source attribution. What is the right way to do this? Tried this two approaches> (My attribution does not change: is open and with default labels ) var tile_photo = new ...
0
votes
0answers
17 views

How to save features via OpenLayers.Layer.Vector for each session seprately (multi-session environment)

I have a question. I would appreciate if you could help out. I have a web application which uses OpenLayers to overlay a network dataset through GeoServer on a map. Users could add features to the ...
0
votes
1answer
23 views

How to show a map with queries from a map file connected to postgres in browser using javascript?

So, the problem is how to show a map in browser using javascript? I have a map file with 2 layers in it: "peta" is a shp data from postgis and "korban" is a numeric data from postgresql. And then I ...
0
votes
1answer
112 views

What should be my learning progress regarding GIS open source [closed]

I was wondering for a while now, what should be the hierarchy of my GIS knowledge or better to say, learning curve in domain of open source GIS. Should I start with Geoserver and PostGIS then ...
0
votes
1answer
29 views

Openlayers 2 How to know the map is after panning/zooming

Firstly i found a logic to customize or extends Openlayers 2 Control Navigation. I dont want to custom the openlayers default, because I'm currently using 2 different map in one page. especially to ...
0
votes
1answer
27 views

Multiple Layers Boundless Suite-SDK ol3view

I am currently building a simple web application with the Boundless OpenGeoSuite SDK ol3view (Openlayer3 viewer) and I was able to get one layer to show up from my geoserver instance but I would like ...
1
vote
1answer
125 views

OpenLayers and GeoJSON

Recently I started learning Openlayers 2x and I've been struggling for a while now with a GeoJSON and it's projections. So, here is the deal; I successfully added wms layers from ( ...
0
votes
1answer
32 views

Saving Map on Server Side as Image File

I am trying to save my openlayers map on the server, following these instructions, the sections Client-side: Tile collection and Server side: PHP: ...
0
votes
0answers
49 views

Apply css styles to layers in openlayers3

define layers and styles using openlayers3 API. i need 2 apply css styles for layers.for that code is in below used //applying styles for wms layer var fill = new ol.style.Fill({color: 'rgba(237, ...
0
votes
0answers
51 views

OpenLayers 3 - Monitor layer loading progress

I'm doing an upgrade from OpenLayers 2 to OpenLayers 3. In OL2, I was monitoring the loading progress of layers with their loadstart and loadend events. With grid layers I was even able to show a ...
0
votes
0answers
15 views

Openlayers - zoom specify a sub section of displayed map to zoom on

I have working solution with openlayers 2 ... moving assets are show on the screen, as soon as they go off the screen, the map pans so the asset is visible on screen (on map) However, on the left ...
0
votes
0answers
4 views

OpenLayers.Layer.ArcGIS93Rest in Firefox (openlayers 2)

There appears to be an error when using OpenLayers.Layer.ArcGIS93Rest in firefox (works fine in chrome) where the request is aborted. No explanation of why. If I plug the token directly into the url, ...
0
votes
1answer
30 views

Openlayers GetFeatureInfo not working all zoom levels

I am sending GetFeatureInfo request to wms service. My parameter is like this. When I click to map, map click event is firing and I am sending this request to server. var params = { ...
0
votes
1answer
33 views

OpenLayers/jQuery without CDN?

I was wondering what are the necessary files for hosting a webgis server with OpenLayers3 without using a CDN? I am testing on a localhost without internet access. It doesn't work to merely copy ...
2
votes
2answers
120 views

Get single layer in OpenLayers 3

I am doing an upgrade from OpenLayers 2 to Openlayers 3 and it seems to me that in OL3 there is no direct way to get a layer from map by its id. In OL2 it was like: map.getLayer(id) If we look in ...
0
votes
0answers
31 views

shape file is not getting added on open layers web mapping application

I am trying to add a shape file which is already on IIS SERVER.it is returning the error code 0x805e0006. When I am trying to open this shape file url in browser it is not getting downloaded also.From ...
0
votes
0answers
38 views

GeoServer 2.6 + PostgreSQL 9.3.5, GeoServer becoming unresponsive

We're displaying point vector data on a web client using an OpenLayers (2.12) WMS layer... rendered via a GeoServer SQL View reading from data in PostgreSQL. The particular layer has a viewParam on ...
1
vote
1answer
98 views

How to get list of all markers from selected Polygon using OpenLayer MAP v2

I am able to run following features on OpenLayers Map Version 2.x Put Markers on Map Draw Polygon on Map Select Polygon on Map Now my requirement is when i select any polygon then i would like to ...
1
vote
0answers
28 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 ...
4
votes
2answers
582 views

Misplaced Google Maps with OpenLayers plugin in QGIS?

I was using Google Maps with OpenLayers plugin in QGIS with my vector layer with projection EPSG:4326 with google map projection EPSG:3857 and "on the fly" transformation enabled. It was matching ...
0
votes
0answers
27 views

Openlayers 2 - and google maps for work

We have a website that is not publicly facing and people have to pay to use it According to google, this means we have to pay their 10,000USD per year licence fee However, does anyone know if the ...
1
vote
0answers
58 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 ...
0
votes
1answer
75 views

Apply an sld to a vector layer in OpenLayers

I'm trying to apply an sld style to a vector layer in Openlayers. I already took a look on google and here and I got a lot of informations, but still I don't manage to achieve the result I'm looking ...
0
votes
1answer
88 views

OL3 the text is incorrectly aligned

Using OpenLayers3 I have observed an incorrect alignment of the text when styling the features of the Cluster source. Also the baseline of the text appears to be ignored. The below code sample (or ...
0
votes
0answers
48 views

Publishing on my own Domain a Map Created by Geoserver,OpenLayers,HTML

I created a basic web application overlaying layers created in Geoserver on top of an Openstreetmap. It works pretty well, I can put the index html to my website and when I accessed my webpage I can ...
0
votes
0answers
28 views

How to rotate label in OpenLayers 2.13?

I need custom rotation in feature text labels. Although this functionality is available in OL3, but at this moment I am unable to migrate to OL3 from Ol2. I have tried changing SVG code at some ...
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
55 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 ...
0
votes
1answer
30 views

Openlayers stylemap label not working wfs

I have created a style map like following: var scadaPointStyle = new OpenLayers.StyleMap({ "default": new OpenLayers.Style("null", { "rules": [ new ...
1
vote
2answers
72 views

How to visualize pgrouting result?

So I use this query SELECT seq, id1 AS node, id2 AS edge, cost FROM pgr_dijkstra(' SELECT gid AS id, source::integer, ...
0
votes
0answers
11 views

QGIS SLD files not working on geoserver 2.5 [duplicate]

I am using geoserver 2.5.x version. I want to use that created SLD style files with QGIS and use it WMS GetMap. My QGIS version is 2.4 and it creates SLD files version 1.1.0 This is my simple SLD ...