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

learn more… | top users | synonyms

0
votes
0answers
4 views

GeoExt.data.WMSCapabilitiesStore with 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
1answer
256 views

Overlay wms + google layer in Openlayers

I want to use OpenLayers, GeoServer layer with the google maps api as a base. In my GeoServer layer is redesigned to EPSG: 900913 when I open the geoserver openlayers with everything ok. On a map ...
0
votes
1answer
303 views

Openlayers 2.12 - add selectFeature to button results in “Geometry Undefined”

I have modified the Openlayers mobile Vienna WMS example, and am trying to change the labelButton to allow selecting of features to open a popup. I think it is necessary to do this as on a touch ...
0
votes
3answers
236 views

WMSGetFeatureInfo Not Returning Results

I am having a problem getting the results back from a WMSGetFeatureInfo call to my GeoServer. Using OpenLayers 2.12, GeoServer 2.4.0, Windows Server2008, and Microsoft IIS 7.5 with Application Request ...
0
votes
1answer
114 views

How to select point feature rendered by picture

I use GeoServer as my gis service and render some points with pictures, SLD code like this: <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource ...
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
7 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
6 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: ...
-1
votes
0answers
19 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 ...
0
votes
0answers
8 views

How can I dynamically restrict pan extents on an image layer in OpenLayers 3?

I have been sandboxing with OpenLayers 3 and thus far have been happy with the results. I have used answers on this site to restrict my most zoomed out level from panning and to restrict the range of ...
0
votes
0answers
7 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 ...
1
vote
1answer
17 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 ...
0
votes
0answers
10 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 ...
2
votes
2answers
707 views

Openlayers - Get Type of Layer

Is there a way to get the type of all the layers in an OpenLayer maps object? What I am trying to do is iterate over all the layers in my OpenLayers map object and populate a dropdown list with the ...
2
votes
3answers
357 views

Best Approach to display charts on a web map?

I have a very basic understanding of GIS through some basic work with openlayers in Drupal CMS. I am trying to understand what is the best approach to display a chart on a map (like the one below)? I ...
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 ...
2
votes
1answer
573 views

Why does Mapserver (ms4w) not generate tmp images?

I am having trouble with my web-based application, where my tmp images are not being stored for later retrieval. The images are generated each time they have to be loaded, so zooming out and then back ...
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 ...
0
votes
1answer
162 views

select (click) labels in openlayers

I have the following style for an OpenLayers vector layer. Color and Name come from Geoserver/PostGIS. I red that setting labelSelect to true, user can also click the label, not only the point and ...
1
vote
0answers
24 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
1answer
141 views

Geomedia WebMap WFS to vector marker layer in Openlayers

Looking for minimal example/advice on getting a WFS service to show up as a vector layer with markers/icons in Openlayers map. I have created the WFS service in Geomedia WebMap 6.01.11.19 and the ...
-1
votes
0answers
10 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?
2
votes
1answer
1k views

GeoServer GetCapabilities Not Working

I am trying to learn how to use the OpenGeo suite by following the tutorials on the site. The one I'm currently trying to follow is http://workshops.opengeo.org/geoext/stores/capabilities.html. Most ...
1
vote
0answers
16 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
1answer
424 views

KML file seems to load in Openlayers without error but doesn't show vectors

I'm trying to load a KML file into an Openlayers map. It seems to successfully run but I am not seeing anything show up on the map. Vectors should show up in an area of New Mexico if it's working ...
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
0answers
15 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
1answer
171 views

OpenLayers: Show a styled title similar to pop-up but always visible?

I need to basically create boxes with titles inside, set to different styles (different coloured box, different FontAwesome icon etc.) set to specific points on the map, ideally replacing the label ...
0
votes
1answer
28 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', ...
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 ...
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
92 views

Problem with adding placemark from kml file with specific id

I have a problem with adding a vector layer from kml file. I am trying to make XMLHttpRequest and add only a placemark with specific id. Nothing is displaying on the map. Request is successful and ...
0
votes
1answer
94 views

WPS Client implementation in our desktop

How to implement wps client in our system and also specify requirements needed? How to specify the proxy to the OpenLayers.ProxyHost = 'proxy.cgi?url='; var map, client, intersect, buffer; ...
1
vote
1answer
553 views

How to add logical operators in wfs openlayers

How i can add logical operators AND, OR both togehter in WFS openlayers. <script type="text/javascript"> var map; function init() { var bounds = new OpenLayers.Bounds( ...
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
22 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
3answers
142 views

Sending and receiving gis data to map

I have a spatial database in Sql server and I am working in asp.net mvc. My project must show stored shape in web page that uses openlayers js and user must see and edit shapes and send the result to ...
1
vote
0answers
18 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
2answers
52 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
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 ...
3
votes
3answers
259 views

GIN/GiST Full Text searches through openlayers, geoserver and postgres

I have a a web app that automatically maps recent tweets and allows you to search for certain keywords. it uses Postgres for the database, geoserver as the server, and openlayers as the cartographic ...
0
votes
1answer
94 views

Get box related info in OpenLayers

I just started to play a little bit around OpenLayers and I am experiencing some issues while trying to let the user draw a bounding box within a map. For this, I looked at this example and tried to ...
1
vote
1answer
217 views

Mapnik not generating tiles for tilecatche

imported data by using Osm2pgsql, to get rid off all problems related to data conversion, i stored this as latlong (-l parameter).I created stylesheet, and i tested with python script and it was ...
2
votes
1answer
1k views

How to deactivate Vector Selection In OpenLayers wms features

This is my sample code and work fine :), But I have a little problem, I'm using multiple layers (WMS), when I zoom the layer will be shown or hidden. In my example bellow when OpenLayers level zoom ...
1
vote
1answer
426 views

Select features of layer which is not on top in OpenLayers

I have posted this question before on the general StackOverflow forum: http://stackoverflow.com/questions/16278569/select-features-of-layer-which-is-not-on-top In short my problem is that I have a ...
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", ...
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
297 views

Polygon color on intersect

Using OpenLayers, I am loading a large geojason file of about 4000 polygons. Once the polygons are loaded I want to draw a "LineString" on the map (already done and working). My challenge is that I ...
1
vote
1answer
853 views

Geoserver sql view using an external sql query?

I am trying to figure out a way of producing a view of a layer in GeoServer, using an external sql query. By external I mean, for instance, a user defined query in a php from where all the parameters ...
3
votes
1answer
109 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 ...