For questions specific to version 2 of the OpenLayers JavaScript client toolkit.

learn more… | top users | synonyms (1)

0
votes
0answers
6 views

Which event is triggered when map.setCenter(lonlat,zoom) has been successfully completed?

I expected it to be zoomend, like map.events.register("zoomend", null, callback);, but that does not seem to work. Which is the right one (and how do I find out)?
0
votes
0answers
5 views

How to clip canvas rendering to a geojson in openlayers

Something I was interested in is clipping a geojson shape to a map. In the following example they are able to clip to a heart shape. ...
1
vote
1answer
29 views

I can't tell if my GeoJSON file is too large for openlayers

I am a bit new to this GIS thing. I have shapefile that I fed to geoserver in order to retrieve a GeoJson file. I was attempting to display this on openlayers, but it won't show anything. The file is ...
0
votes
0answers
8 views

OpenLayer WMS Polygon Fill color dynamically

i am new to OpenLayer Geoserver and PostGIS. I want to color my WMS Polygon Layer which has multiple polygon in different color based on some value. Is this possible with wms or wfs. Color for polygon ...
0
votes
0answers
14 views

Multiple measures polygon with openlayers 2.13

my question is simple, is it possible to do multiple measures with OpenLayers 2.13. Something like this example, instead of this I can't use OpenLayers 3 for now.
1
vote
1answer
31 views

Openlayers GEOJSON

I'am trying to show some points. The coordinates are in the file 'test.json'. But they wouldn't show themselve so i suppose there is something wrong with the code? <!doctype html> <html ...
1
vote
0answers
22 views

Openlayers 3 connecting to a wms feed with a different projection

I am trying to incorporate a wms feed in the British national grid projection (EPSG:27700) into a openlayers 3 project. I initially had used this wms layer in an openlayers 2 application using the ...
1
vote
0answers
26 views

Multiple geometry types layer in Geoserver?

I am using OpenLayers and Geoserver in a web map application in which I'd like to implement editable layers by drawing features on it. I followed this tutorial to save the created features with WFS-T ...
0
votes
0answers
21 views

Cannot remove last Point from Cloned Geometry in OpenLayers

I am working with OpenLayers-2 and currently can't figure out why I cannot remove the last Point from a cloned LineString-geometry. This is my original geometry, a LineString with three points and ...
0
votes
0answers
6 views

MapGuide Fusion OpenLayers 2.13 ModifyFeature - how to get input object from Fusion…?

I'm looking for a way to pass the Fusion object's selected geometry into OpenLayers.Control.ModifyFeature to initiate an edit session for the user. Non-Fusion Example: ...
-3
votes
0answers
8 views

Error REQWEST is not defined while using getfeature info of wms layer

I am using the following code to get the feature information of layer but I'm getting an error like "reqwest is not defined" map.on('click', function(evt) { // Hide existing popup and reset it's ...
-3
votes
0answers
21 views

Proj4js not working

I'm using proj4js library in Openlayers 3 to reproject a simple osm map so I can have the center of my map located in Greece (EPSG:2100). So I'm having this code: <script> var osmLayer = ...
0
votes
0answers
13 views

how to display multiple markers and save his position in database

I create a proyect in openlayer 2.13 and i would like to let users add custom markers on a map and save the position(latitud and longitud) of this markers in a table of a database or in some txt. ...
1
vote
0answers
19 views

set OpenLayers.Map extent dynamically

if (workspace=="x") { bbox = [3461431.90483,5555489.54044,3461896.81256,5555951.68634]; } else if (workspace=="y") { bbox = [471730.87469,5524059.31339 ...
2
votes
1answer
35 views

Creating an OpenLayers map in Node.js View

I'm new to node.js and am attempting to put a simple OpenLayers map on a page. However, the map is not showing up. Code: app.js var express = require('express'); var app = express(); ...
1
vote
0answers
37 views

Yandex Traffic layer position issue with using openlayers

i have got issue about traffic map with using openlayers library. Traffic layer shifting from sublayer. so roads and streets are mismatch. can you help me please. in jsfiddle The code from the ...
0
votes
0answers
10 views

what is “param” exactly in filterToParams in OpenLayers?

I don't exactly get the way to use filterToParams in OpenLayers 2. I get the data via HTTP-Protocol, format gml, but when I check the params in firebug, it does not contain anything. So I've tried to ...
3
votes
3answers
41 views

Projection offset between layers: OSM, GeoJSON

Don't know why there is an offset: The coordinates of the points that appear on the example were gotten through google's geocoder from some Rosario, Argentina directions. I have checked the lats and ...
0
votes
0answers
21 views

Why don't latitude and longitude match with others one?

I have a latitude and longitude: 60.011887, 30.37898 When I add marker to openLayersMap I get this marker in another place. Why does this happen? here is the code: var MyMap = (function() { var ...
1
vote
0answers
23 views

Problem with previewing layer on geoserver ( instead of downloading wms file ) [closed]

When I hit OpenLayers to preview my layer in Geoserver, instead of opening a new tab with OpenLayers it automatically downloads a wms file I just opened the wms file and says : <?xml version="1.0" ...
2
votes
0answers
11 views

Trigger event after KML Layer completely loaded

I want to set the bounds of my map after a Vector (KML) Layer is loaded. kmllayer.events.register('refresh', kmllayer, function(evt) { map.zoomToExtent(kmllayer.getDataExtent()); }); In the ...
0
votes
0answers
42 views

Leaflet self-intersecting polygons display

Is it possible to set colors of the actual intersections of self-intersecting polygons in Leaflet? Example of such self-intersetions can be found on the pic below, the transparent triangles inside of ...
3
votes
2answers
111 views

QGIS Desktop 2.12.3 WebApp Builder

I want to use the WebApp Builder in QGIS 2.12.3 But I can not find the QGIS Web App Builder in my QGIS version 2.12.3 Like this one: ...
0
votes
0answers
22 views

display local tiles with openlayers that are generated by maptiler from a (.tif) georeferenced image

im working on a mobile app and trying to use my locally stored tiles that i generate using maptiler software. after tiling my image.tif i got many folders of png images and two other files : ...
0
votes
1answer
18 views

Styling in OpenLayers2: unknown symbol name

I'm using Geoserver 2.8.1 and OpenLayers 2 to visualize cartographies, the geoserver documentation indicates I can use extra symbols in my SLD, the "shape://oarrow" for example : <Mark> ...
1
vote
0answers
22 views

OpenLayers2 with differnt projection is giving blank page

I have copied the full code. the code does not give any exception but nothing comes on browser. This code works with EPSG:4326. Is it the correct way to define projection? function init() { ...
1
vote
1answer
58 views

OpenLayers 2, JSON vector through WFS

Consider this example, https://geoext.github.io/geoext2/examples/grid/feature-grid.html It uses protocol: new OpenLayers.Protocol.HTTP({ url: "../data/summits.json", ...
0
votes
0answers
10 views

Cannot change resolution programmatically in OpenLayers

I am using OpenLayers 2 with GeoExt 2. Map is created using the following code: var mapOptions = { minExtent: minExtentBounds, maxExtent: maxExtentBounds, restrictedExtent: ...
1
vote
1answer
196 views

Error Opening OpenLayers plugin in QGIS [on hold]

I have installed version 2.12 of QGIS and I have installed the OpenLayers plugin. However, when I try to add a basemap through Web > OpenLayers plugin I get the following error message "An error has ...
0
votes
0answers
9 views

How to get names and property of all the vector layer within my work space? [duplicate]

I am using Geo Server for storing my vector data. now i want to fetch all the layer name and its properties/attribute from my work-space. Can anybody please let me know is there any API or anything ...
0
votes
0answers
19 views

Image is not loading on the base map

I have installed Geoserver on Ubuntu and windows the problem is i can not load the images on the map, my javascript code is given below. var layerSwitcher = new ol.control.LayerSwitcher(); ...
2
votes
0answers
17 views

layer styling switches after zooming in with no reason

Does anybody have an explanation how it is possible? I have a strange trouble on the following map. The surrounding land layer, which is only a one polygon layer and is styled normally like: var ...
1
vote
1answer
99 views

QGIS Essen 2.14.0 open layers plugins runing windowa7 64 bit

I cannot make any OpenLayers plugin visible for the part of the world for which I plot vector points. I set CRS to WGS 84 / Pseudo Mercator. After adding a layer of points it should be trivial to ...
0
votes
1answer
44 views

How to create a choropleth map from a very Large geojson using Openlayers?

I am trying to create a choropleth map using OpenLayers 2 api from a Geojson file that has a size of about 229 mb. I have used the mapshaper tool to simplify the polyogns in this json to about 19 mb. ...
-2
votes
1answer
36 views

How to the display the information in an OpenLayers popup as a two column table?

My pop-up info in OpenLayers is showing its information horizontally (see screenshot below). I would like it to display vertically instead. Is it possible?
0
votes
0answers
22 views

Openlayer3 prevent resize feature on zooming

im trying to migrate my simple app from openlayers 2.x to openlayer 3.x First issue is features are getting smaller when i'm zooming in map. function init() { populateStationList(); ...
0
votes
0answers
20 views

OpenGeo tutorial data_dir

In OpenGeo tutorial: http://workshops.boundlessgeo.com/suiteintro/apps/ol/createmap.html in paragraph Using a basic text editor, copy the text above into a new file and save it as < ...
0
votes
0answers
13 views

Problem in adding geojson to WMSTile layer

I have problem with adding my geojson file to WmsTile (I see this layer). Here is my code with sample of geojson :
-2
votes
1answer
31 views
1
vote
0answers
24 views

How do I increase the 2mB uploadifive limit in Geoserver installed on AWS?

I've recently migrated a site from Geoserver 2.1.4 installed on a hardware server to Geoserver 2.7.0 installed on an Amazon Web Service. The site uses uploadifive to enable the user to upload a pdf to ...
0
votes
0answers
19 views

Problem with adding “TEXT” to vector layer (geojson)

I would like to add "name" of my vector layer. I put 'Hello' , instead of feature but it doesn't work too. Where is a error? var countryStyle = new ol.style.Style({ fill: new ol.style.Fill({ ...
0
votes
0answers
26 views

How to getfeatureinfo results in a column than a row from geoserver postgis openlayers

Below is a snippet of a code I modified from openlayers. Basically, I click on a wms map and data from postgis is queried by geoserver and served on a single row table. There are 11 variables in the ...
0
votes
0answers
29 views

How to Add modify feature into my webmap script?

I am using OpenLayers. I have a web portal with all the option. How can I add the modify feature into it?
1
vote
0answers
46 views

GeoServer web application

I'm trying to create a web application using GeoServer. When I try to see the file var/lib/tomcat8/webapps/geoserver/data/www/ol-demo.html, no map appears, just the title "Geoserver Open Layers ...
0
votes
1answer
38 views

Geodjango with Geoserver and Openlayers

I am trying to teach my self Django and its spatial extension geoDjango. There is one thing, which is still a bit foggy in my mind. When using the trio: Postgis, geoserver, openlayers is perfectly ...
0
votes
0answers
16 views

Group similar features in Geoserver

I have created a view in PostGIS with 1:M relationship. Now I want to display that view in Geoserver. But the problem is that my each feature is represented multiple time. How can I show the ...
1
vote
1answer
68 views

Displaying KML Extended Data in OpenLayers?

I have just got a problem displaying extended data from a KML file in Open Layers 2. I hope you can help me with this issue. I have already searched for a solution, but I do not find a real solution ...
0
votes
0answers
45 views

GetFeatures from WMS using angular-openlayers-directive

How do i get features from a wms layer using angular-openlayers-directive? Ive been trying to figure that out, but cant find a way to do it.
2
votes
1answer
18 views

Need Help on Multiple External SLDs for Geoserver LayerGroup

I have a layer group called "basemap" in my Geoserver made up of 3 layers but their SLDs needs to be styled dynamically so I have decided to create a xml web service for the external SLDs but I am ...
0
votes
0answers
15 views

OpenLayers.Markers popup doesn't appear with multiple markers

Trying to get the popup to appear but it only appears for the last object in arrObj. I'm not sure if adding these listeners all together is a good idea but I can't figure out a better way (arrObj is ...