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

learn more… | top users | synonyms

0
votes
0answers
17 views

how to use pre generated Tiles?

I'm using mapserver and openlayers for my gis server. I have a sqlite database that contain cached tile and i want to use this cached tiles as base layer. databse structure : Tiles id ...
0
votes
0answers
7 views

JSON coordinates not showing on Open Layers 3

i hope you guys could help me. its been several days since it tried and failed on populating my markers using a json Method. Please point out where im making a mistake. Thanks. Below is my code: ...
0
votes
0answers
8 views

How to display output of a chained process in OpenLayers?

Is there a way I can display the inputs of a WPS process when one of the inputs is output of a chained configured process ? Maybe the snippet below will explain what I am trying to do ...
0
votes
0answers
35 views
+50

Error with GeoExt.data.WMSCapabilitiesStore + gx_wmslegend

When I use this code (code in bold means for comparison between codes): // create a new WMS capabilities store store = new GeoExt.data.WMSCapabilitiesStore({ url: ...
0
votes
0answers
14 views

Google Maps zoom number and min/max scale(Openlayers)

How to set Google maps' zoom number accordingn to min/max scale of a wms layer? If min scale is 1/50000 and max scale is 1/5000 (units: m), which zoom number is resonable? I tried to set min zoom ...
0
votes
0answers
10 views

Call style function when zoom the map?

First I am attaching my code snippet. var selectControl = new ol.interaction.Select({ condition: ol.events.condition.click, //not stable as per documentation layers: ...
0
votes
0answers
9 views

OpenLayers - Converting loadURL to Request.GET

I am using the sample code that comes with GeoServer to generate a layer for openLayers 2. However the latest version of openLayers 2 no longer supports loadURL. I am trying to convert the sample ...
0
votes
0answers
13 views

RegularShape undefined in openlayers 3?

I want to rotate my polygon feature 90 deg so from documentation I have found ol.style.RegularShape to rotate like this but gives undefined error on that line. After debugging the code it is clear to ...
-1
votes
0answers
21 views

why am i not able to do WPS chaining? [on hold]

i am trying to write a code in javascript using openlayers (2.13.1) to chain the wps processes on click, but not able to chain the processes . the Error is : Uncaught TypeError: Cannot read ...
1
vote
0answers
16 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
1answer
18 views

I can't get my OpenLayers radar overlay to display correctly

I've tried to overlay a radar image on my map so that I can show the current radar for the United states. However, whenever I load the map, I can't seem to get the projection to look correct. Here's ...
3
votes
0answers
33 views

Is OpenLayers appropriate for creating maps of a fantasy world?

Please excuse my ignorance, I've been directed here from Stack Overflow where I've been looking at a variety of HTML5/JQuery packages to create a map of a fantasy world that exists in a game I ...
0
votes
0answers
15 views

Is there a formula for calculating 2D map distance from 3D information?

Using ThinkGeo, I have a Lat/Lon coordinate, and a distance of .1 miles. The .1 miles represents the radius of a circle and I'm trying to draw this radius around the lat/lon coordinate. The map units ...
-1
votes
1answer
22 views

How to remove WMS layer from OpenLayers

How to remove added WMS layer from OpenLayers ? I have seen a link here.But I did n't get clearly. Please help? I have added the WMS layer as follow <script ...
1
vote
0answers
21 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 ...
0
votes
0answers
10 views

'select' listener in xtype combo, scope issue with IF?

I wonder if this is a problem of scope. The thing is that I select an option in a xtype combo (extjs3.4) and that selection at first can be read outside and inside an if section (attached image). Now, ...
0
votes
2answers
40 views

WMS layer is distorted

My WMS layer(EPSG:3847) looks fine in GeoServer However, it is distorted in browser: I found someone hade the same problem(Openlayers and Geoserver: OSM/Google Maps and WMS Overlay)but I still ...
0
votes
0answers
17 views

Cannot read property 'a' of null ol.js

Does anyone have any idea why this error is showing. If I use a test function everything is running fine. But if I read data and put it into ?what? then this error is showing. I can't paste my code ...
0
votes
0answers
5 views

Adding eventListeners makes my geoserver app stop working

I am trying to use OpenLayers.Control.WMSGetFeatureInfo in combination with OpenLayers.Popup.FramedCloud to retrieve info from my geoserver and show them in a popup window. This is my code: var ...
0
votes
1answer
12 views

Compare getValue with map.layers[i].name

As part of a xtype combo, I would like to know if the layer I choose in my simple data store (represented by this.getValue()) is present in the map layers. So if it does, A should occur, and B if it ...
1
vote
0answers
8 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
1answer
23 views

How to overlay WMS layers in Openlayers?

I have 3-4 layers (shape file) in GeoServer, and I have to have all of them to make a map of a city.However, so far I can only create a map with only one layer by writting map = new ...
1
vote
0answers
19 views

OpenLayers.Control.WMSGetFeatureInfo in init function does not return item query

Good day everyone! In my struggle to get myself acquainted with OpenLayers and Geoserver, I have stumbled again on a technical problem for which I was looking for a solution for two days but I was ...
0
votes
1answer
29 views

Legend in GeoExt.tree.LayerContainer

Using the code below in this jsfiddle example: tree = new Ext.tree.TreePanel({ renderTo: "tree", root: new GeoExt.tree.LayerContainer({ text: 'Map Layers', ...
1
vote
0answers
23 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 ...
0
votes
2answers
54 views

Openlayers OSM Cross-Origin Issue [duplicate]

I'm developing a web map for my town. I made my own vector layers and, to avoid the too much "white", I decided to use as base layer OSM. The problem is that when I use the array of resolutions to set ...
1
vote
0answers
6 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 ...
0
votes
1answer
16 views

How to get countries through OpenLayers.Protocol.WFS?

Am able to get states information of United States by using OpenLayers Protocol. new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:900913", ...
3
votes
1answer
123 views

I am looking for an alternative solution to openlayers for satellite imagery in QGIS? [closed]

Does anyone have any other suggestions for sources of satellite imagery on QGIS? Openlayers is becoming extremely temperamental in QGIS 2.6 (Google imagery not bothering to work anymore, Can't zoom in ...
1
vote
1answer
21 views

OpenLayers wfs GetFeature large amount of data

I am using wms GetFeature request to geoserver from OpenLayers application. And highlight different color that return features on map. This is working fine for 990 records. But not returning for 1800 ...
1
vote
0answers
9 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
25 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 ...
2
votes
1answer
48 views

How to add ol.layer.Vector source dynamically?

How to set source dynamically to a layer vector in openlayer 3 like this var vectorLayer= new ol.layer.Vector({ source: new ol.source.Vector() }); vectorLayer.setSource(another_source); Is it ...
2
votes
0answers
18 views

wms layer cant see when I zoom

I have read many tipps for the problem "layer bacome cloudy when zoom", but it doesn't work still. Where is the problem in my source? var wms = new OpenLayers.Layer.WMS( "Földrengések", ...
1
vote
1answer
38 views

How to draw a polygon in openlayer 3?

As my project requirement I want to draw a polygon look like this (>. In this case draw polygon sides too dense for arc. Successfully draw this using LineString but how to draw it using polygon. ...
0
votes
0answers
15 views

OpenLayers 2 - prevent feature from being drawn on right click

My goal is this: prevent features (points) from being added to the vector layer with the DrawFeature when the map is right clicked. Only left clicks should add features to the vector layer of the map. ...
0
votes
0answers
27 views

Export / Print WFS Layer to JPG or PNG

I am successfully saving WMS Layers as Image Files with the following approach: http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting Unfortunately, this does not work at all for WFS Layers. I ...
1
vote
0answers
26 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
17 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
14 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
9 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
29 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
17 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
37 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
26 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
24 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
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
22 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 ...