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

learn more… | top users | synonyms

1
vote
0answers
65 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: ...
0
votes
2answers
26 views

Openlayers2 checking coordinate system of WKT or KML file

In my Openlayers2 based project I give the possibility for users to upload their own features in KML file or with a WKT string. I only want to accept features with ESPG:4326 coordinates. Otherwise a ...
1
vote
0answers
17 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 ...
2
votes
0answers
15 views

unselect all Features with jquery dialog close button openlayers 2.13

how can one unselect all Features with jquery dialog close button function in openlayers 2.13? View Entire Project Here (some buildings are not yet clickable) incorrect code: ...
2
votes
1answer
41 views

Problem with geoserver and OpenLayers3

Good evening all! New guy using GIS here. I am struggling to insert one of my layers that I uploaded in GeoServer in an OpenLayers 3 map. Unfortunately, I do not get the layer displayed. Can you help ...
2
votes
0answers
27 views

vector map.png image do not display

im using ms4w on my localserver. this are some codes inside my mymap.map file. MAP etc..... OUTPUTFORMAT NAME pnggd ...
3
votes
0answers
51 views

Problem importing KML file to OpenLayers - Projection System

I know that many have this problem,but none of the answers helped me so i suppose it's a different problem.This is my code: <!DOCTYPE html> <html> <head> ...
0
votes
0answers
37 views

Different results of fullscreen mode in OpenLayers 3

anyone here have already met similar problem like me? My original application is not viewing correctly (in all browsers) in fullscreen mode, which is openlayers 3 functionality. The problem is with ...
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 ...
2
votes
1answer
40 views

Creating tiles for OpenLayers.Layer.XYZ

I am trying to use a 200GB ortophoto tif file in a web application using OpenLayers library. As I don't have no software to create WMS WMTS etc. I want to use OpenLayers.Layer.XYZ. How can I create ...
1
vote
1answer
17 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
33 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
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 ...
0
votes
0answers
32 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
83 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
29 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
29 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
42 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
93 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
59 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
24 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
74 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
32 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
108 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
114 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
51 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
32 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
97 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
30 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
32 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
121 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
41 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
40 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 ...
2
votes
1answer
142 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
42 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
62 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
72 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
16 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
5 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
39 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
47 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
212 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
34 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
44 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
176 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
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 ...
4
votes
2answers
790 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
32 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
100 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 ...