Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
3 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 ...
0
votes
0answers
5 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
11 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 ...
0
votes
0answers
40 views

Using Google Maps 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
11 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 ...
0
votes
0answers
16 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 ...
0
votes
0answers
25 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
52 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
33 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
26 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
19 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
18 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
15 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
9 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
57 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
10 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 ...
1
vote
0answers
15 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
1answer
22 views

Using WMS external SLD with OpenLayers application

I want to use external SLD file in my OpenLayers application. So I created WMS layer like this: var ly= new OpenLayers.Layer.WMS("mylyer", serverurl, { layers: ...
1
vote
0answers
44 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 ...
0
votes
0answers
19 views

Openlayers zoomToExtent - can i specify a max zoom level?

i'm using the following code map.zoomToExtent(markerLayer.getDataExtent()); this works fine, for multiple points, however, if just 1 point is being displayed, the zoom level is on MAX ...which ...
1
vote
0answers
33 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> ...
0
votes
1answer
17 views

Openlayers event cluster feature id does not appear on layer vector feature id list

My application's objective is to click on a cluster and produce a popup with a list of all placemarks clustered there where every entry is a hyperlink that closes current popup and opens a new ...
2
votes
0answers
46 views

Building a ol3 webapplication with dynamic content and user registration

My setup: currently i'm using a postgis database, get it with a geoserver and display it with openlayers 3. I use the wfs data to display the features in clusters and i'm able to edit them with wfs-t. ...
0
votes
1answer
25 views

Tiles are missing when request from Openlayer2

I have configured a Tile server and i followed the Link for OSM Tile server from switch2osm everything is fine, except when i tried to get the tiles using Openlayers its not serving. But if i give ...
1
vote
1answer
34 views

Including WMTS Layer from API in Openlayers2

I´ve generated a map API from the GBIF data portal. It shows points from the country Mali. I included the API as a WMTS in Openlayers2, but I dont know how to change the xyz accordingly, so that my ...
0
votes
2answers
31 views

How to make openlayers features externalGraphic reappear after hiding

I'm displaying a vector layer with pois, generated from a text file: lat lon icon iconSize iconOffset title description 56.030325 14.4774116666667 ...
0
votes
0answers
35 views

pgRouting with my bus network and select the best of the available routes?

so here's the case: I have been using postgresql/postgis, openlayers and pgrouting to create an online application that selects and visualizes the best of the availabble routes. My problem is though: ...
3
votes
1answer
61 views

OpenLayers Map From QGIS Server

I am creating my first map using OpenLayers and I am having trouble. The map was created with QGIS Desktop 2.6, and I am using Ubuntu 12.04. The WMS service is QGIS Service. This is my first try doing ...
0
votes
1answer
18 views

Cant align TMS on OpenLayers Map

I would like to add this TMS layer as my baseLayer. You can see the layer specs here I am doing like this to create the layer: var tmsLayer = new OpenLayers.Layer.TMS( "Gouvernement du Quebec", ...
2
votes
0answers
50 views

mousemove event is fired with IE and firefox but it is not fired with chrome [closed]

I am using mousemove event to do some code when the mouse get over features, the code below is working well with IE and firefox but It is not working with chrome ...
0
votes
1answer
34 views

Openlayers 2 - zoom to multiple coordinates

I have multiple asset icons on a map I want to be able to zoom to show all icons on the map I have the Lat and Long of each asset Currently, i have it working with 1 asset as I can use this code to ...
0
votes
1answer
69 views

How to calculate the optimum bus route using pgrouting?

My setup for my web page is OpenLayers, Postgresql/postgis and pgrouting. What I do not understand is how I am going to do the routing.I have read many tutorials but I don't understand what my next ...
2
votes
1answer
63 views

ArcGIS93Rest for Openlayers 3

In Openlayers v2 I could get a map from an ESRI server that was not a cached service using code similar to below var arcims = new OpenLayers.Layer.ArcGIS93Rest("MyName", ...
0
votes
0answers
43 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
1answer
29 views

OpenLayers 2 / MapServer: Limited zoom levels

I want to display a MapServer raster image with OpenLayers 2. My problem is that I cannot zoom into the image although the resolution should allow it. This is what I have so far: ...
3
votes
1answer
37 views

ol.style.Rule is implemented in v3.0.0-beta.1 and not in v3.0.0

Can we use ol.style.Rule and ol.expr.parse in OpenLayers-v3.0.0? I cannot find them but they are implemented in OpenLayers-v3.0.0-beta.1.
1
vote
1answer
23 views

Access vector layers features

I have an openlayers vector layer with features added from a text file. I am now trying to access these features via their attributes (if layer.features.attributes.some_attribute equals to something ...
0
votes
2answers
42 views

How to improve the performance of an OpenLayers based API containing a large number of layers?

I have a GIS SDK with WMS layers and Vector layers (with information from Geoserver). I have methods for setting a style map, but I have a performance problem. When I set same style for 30 layers, ...
2
votes
1answer
28 views

How to transform this PostGIS type of projection to EPSG:900913 in OpenLayers?

I have transferred this kind of projection from this type(which I don't what type it is): 010100000054E077E6F8F33640FD87F4DBD7AD4340 to EPSG:900913. I have the points which are in the above format ...
0
votes
1answer
56 views

openlayers bootstrap3 examples?

I was wondering if there is any good example of openlayers used in the HTML page with bootstrap3? I searched around, and can only find bootstrap 2 examples, like this one: ...
0
votes
0answers
26 views

Replace for Tilecache?

I tried to use Tilecache with my mapserver/openlayers/postgis/cygwin configuration, but no success so far, I just got tired of keeping digging in the whole system to get that thing working. So, could ...
1
vote
1answer
23 views

Openlayers: how to remove the FID field with the WMSGetFeatureInfo function?

I'm using the WMSGetFeatureInfo control of Openlayers in order to have a pupop in the map with the WMS layer info. Automatically Openlayers inserts a FID field at the beginning of the popup. Is there ...
1
vote
1answer
26 views

Center OpenStreetMap at Location defined in specific Projection

<body onload="init_gis()"> <div id="map" style="height:750px"></div> <script type="text/javascript"> var config = { init_lonlat : new ...
2
votes
1answer
118 views

OpenLayers 3 - draw multiple lines/paths based on coordinates

I am trying to draw a line(s) based on give coordinates (starting and ending point). Googled , found few examples but non of them seem to work probably because they are for OL2, so this is my last ...
0
votes
1answer
35 views

Color Blend Mode for OpenLayers Vector Feature

Currently I'm developing a WebGIS app using OpenLayers 2.13.1, GeoServer, and PostGIS. The app has buffer analysis feature which is working fine like the picture below. What I'm looking for is: is ...
1
vote
2answers
50 views

Hiding specific icons/markers on text generated vector layer

I'm displaying a vector layer with pois, generated from a text file: lat lon icon iconSize iconOffset title description 56.030325 14.4774116666667 ...
0
votes
1answer
21 views

How to hide a layer dynamically from layers groups in Geoserver?

I have created a layer group (using 15 layers) in Geoserver. I can access this layer group through Openlayers & it's working fine. As per the client requirement, I need to develop a layer switcher ...
2
votes
0answers
29 views

how to display 2 wfs layer at the same time from mapserver?

I have two wfs vector layers. When i show only one layer, it works. But doesn't work when i'm trying to show 2 wfs layers at the same time. How to show 2 wfs layers together? I'm using OpenLayers. ...
0
votes
0answers
36 views

QGIS web client mobile/tablet viewer

I have been looking at OL3-mobile-viewer as an option to make my maps more accessible. Unfortunately I cannot figure out what I need to change to hook it up with my existing QGIS server and ...
0
votes
1answer
40 views

Using Proj4js in Openlayers - Proj4js is not defined

I want to use Proj4js. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/openlayers/2.12/OpenLayers.js"></script> <script type="text/javascript" ...