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

learn more… | top users | synonyms

0
votes
0answers
6 views

Routes Consult with pgrouting / openlayers

I'm starting with pgrouting. After suffering a bit unable to put the data in osm postgis using osm2po with the excellent tutorial http://anitagraser.com/2011/12/15/an-osm2po-quickstart/ ran the sql ...
1
vote
0answers
22 views

Error when adding WMS layer in OpenLayers from a geoserver

I try to add wms layer from geoserver: var layer = new OpenLayers.Layer.WMS(name, 'http://'+ self.objSettings.ip + ':' + self.objSettings.port + self.objSettings.wms, { srs: 'EPGS:4326', ...
0
votes
0answers
11 views

Remove last line segment of an OpenLayers.Control.Measure

i'm using OpenLayers library, i'm trying to delete the last line segment of a drawing realized with the following code: layerLine = new OpenLayers.Layer.Vector("layerLine"); layerLine.id = ...
0
votes
0answers
32 views

How to proxy GeoServer through Tomcat in Windows?

I have GeoServer 2.4.4 and eclipse running on Apache Tomcat 7.0.39. My websites and GeoServer are on same host but different ports. I want to access a WFS layer remotely from GeoServer but i know i ...
2
votes
0answers
16 views

Extract a polyline f rom a geoserver shapefile

I've been Googling my question for 3-4 hours now but I couldn't come up with an answer. So I have a GeoServer which contains a shape file with some roads on it. Is it possible to programmatically ...
0
votes
0answers
9 views

read feature of a region in map

I am using geoserver and openlayer for developing a GIS application. Is it possible to read features lying within a known polygon area of map through some looping logic without any click on map? I ...
1
vote
0answers
6 views

How to display specific areas specified by Global MapIt Area ID in Open Street Map using Open Layers?

I've been customizing the Fix My Street platform for the two cities in my country, just to test everything out in it and how it works and maybe implement it for the whole country in the future. The ...
-1
votes
0answers
10 views

how to consume map data from geoserver with Netbeans IDE Java [on hold]

I want build web application in Java , which consume Map data from GeoServer and Display. How could i do that . Any Help ?
1
vote
1answer
37 views

Label styling applied in Geoserver are not being applied to WMS layer in Openlayers

I am trying to label a layer of line vectors using SLD in Geoserver. It is simple enough, and it's pretty much copied from the SLD cookbook: ...
0
votes
1answer
6 views

OpenLayers 2.13 floating components resize not working

In my application i am using ExtJS4. After upgrade from OpenLayers 2.12 to 2.13.1 i noticed that i am unable to resize windows (floating components) that are on top of the map, like the resize action ...
0
votes
0answers
18 views

Vector Layer Causes Movable White Box to Display Outside of Map Viewport

In OpenLayers 2.13.1, odd behavior arises with Vector Layers in my application where a white area appears outside of the map viewport and blocks the visual aspect of my controls. The controls actually ...
0
votes
0answers
27 views

WMS GetfearureInfo popup not getting

I am new to openlayers, used this link to get feature information of WMS layer of geoserver. If I clicked on any feature its continuously loading not displaying any popup. Can any one please help me ...
0
votes
0answers
18 views

How to remove the 'Report a map error' message in Google Satellite imagery?

Using Google Satellite as a basemap, I see the message 'Report a map error' in the bottom right corner of the screen (when the map is over land). Here is an example of this message on a similar map. ...
4
votes
0answers
19 views

Does leaflet.js offer an gutter option just like Openlayers

Currently we are switching from Openlayers to leaflet.js and there is a problem using a WMS layer with leaflet. The WMS being used is Deegree. When a layer is visualised within leaflet there are ...
0
votes
0answers
17 views

GetFeatureInfo Popup not getting popup [duplicate]

I am new to Openlayers, I am using this http://openlayers.org/dev/examples/getfeatureinfo-popup.html to get feature information of wms layers in a popup.If I use the above link on line I am getting ...
0
votes
0answers
23 views

Openlayers not displaying WFS layer

First, I realize there are a number of very similar posts on this site and others, but none have resolved the issue I'm having. I have a layer I'm trying to serve via WFS in Geoserver/OpenLayers ...
1
vote
1answer
41 views

How to render tiles from kml file

I'm trying to render tiles out of a KML file. Normally, I'd render tiles out of an planet.osm extract. For example, I'd select a tag using osmosis and then process it with osm2pgsql. Then I'd ...
0
votes
1answer
9 views

length array in OpenLayers.Layer.Vector

how to find length array (markers) in OpenLayers.Layer.Vector ? var data = new OpenLayers.Layer.Vector("Data", { styleMap: styleMap, strategies: [new OpenLayers.Strategy.Fixed()], ...
0
votes
1answer
11 views

gxp_wmsgetfeatureinfo GetFeatureInfo on a non-advertised layer possible?

So, as the title states, I will like to know if it is possible to use gxp_wmscsource to send an GetFeatureInfo query to a non-advertised layer that was added to my opengeo SDK app using lazy loading. ...
0
votes
0answers
5 views

No Load kml in Openlayers MVC ASP.NET

I have a problem to load a kml map using OpenLayers. I used this in this example: http://www.openlayers.org/dev/examples/sundials.html I put the following script to load the kml var wms = new ...
0
votes
0answers
12 views

Python error with OpenLayers [duplicate]

I have recently downloaded QGIS 2.2.0. I am trying to use OperLayers, but I constantly get this message: Errore durante l'esecuzione di codice Python: Traceback (most recent call last): File ...
0
votes
1answer
18 views

GXP Hidden layer switcher - composer.html

I am working with GEOSERVER, GeoExplorer, GXP. I am creating a WPS client and need to generate a vector layer that serves to make operations on vector data, such as buffer, split polygon. I know how ...
0
votes
2answers
30 views

OpenLayers + Geoserver problem with wfs projection

In geoserver i have a layer in EPSG:26191. In OpenLayers i add it on map as WFS: markerLayer = new OpenLayers.Layer.Vector('Markers',{ strategies: [new OpenLayers.Strategy.Fixed()], ...
0
votes
1answer
26 views

Having 1 base layers hide when the other one is shown and visa versa

I have an open layers map that is using Mapquest as a base layers as well as my own base layer. I've seem to be having an issue with getting the one base layer to show while the other one hides. The ...
1
vote
0answers
14 views

Printing large size with OpenLayers plugin basemaps?

trying to print A0, with one of the maplayers from the openlayers plugin, the resulting print misses tiles and is corrupted. any scale i choose there's no way except (i need >= 1.50.000) I tried to ...
0
votes
1answer
21 views

Draw arc in Geo map WGS84 coordinate system

im trying to draw an arc in OpenLayers, in non Geo map it works well and here is my code: function calculateArcPointsNonGeo(center, radius,startAngle,endAngle,segments) { var pointList = ...
0
votes
0answers
20 views

Measure the geodesic area of a polygon

I have an OpenLayers.Control.Measure control with an OpenLayers.Handler.Polygon handler. The "geodesic" property of the Measure control is set to "true", but area measurements are still planar. Is it ...
0
votes
1answer
14 views

Openlayers. How to remove last sketch if invalid

I can currently identify if a polygon is invalid through wps as per below code. What I want to know is how to remove the last sketch polygon if it returns invalid? To give you an idea, here is the ...
1
vote
0answers
51 views

MySQL+GDal+MapServer+OpenLayers WebMercator problem

I have a problem/question what is the most efficiant way to go from WGS84 (epsg:4326) to webmercator. Outline of the structure right now: MySQL Database: with point Latitude/Lontiude Data [~200 ...
1
vote
0answers
14 views

Openlayers FramedCloud - Add Offset

I'm working with the example here: http://openlayers.org/dev/examples/light-basic.html When you hover over a circle, the popup appears. However, the behaviour is 'flakey' because once you hover over ...
2
votes
0answers
30 views
+50

Features not added to KML Vector Layer in Firefox

Has anyone else had a KML vector layer display perfectly fine in Chrome (v35) and IE10+, but fails to add the features to the layer in Firefox (v30)? I'm using OpenLayers 2.12 and have also tested in ...
0
votes
0answers
88 views

how to access vector layer from localhost:8085

My environment is as below. Server A contained the web application, I used win7,tomcat 7.0,eclipse Kepler Service Release 1 Server B contained geoserver and my sph data,the geoserver2.4.4 works ...
0
votes
0answers
22 views

How to connect Openlayers with Postgres [duplicate]

hye all, im really new in openlayers, i already have a map using openlayer but not have layer. my question is, how i want display layer using postgres and i want to make a search function to search ...
0
votes
1answer
16 views

Openlayers documentation for WPSClient and layer.events.on

I am having trouble finding the following documentation: The openlayers wpsclient documentation: eg: what are the requirements for the wpsclient javascript to run JTS:overlaps or JTS: Difference ...
2
votes
1answer
32 views

Using Arcgis geometry in OpenLayers

I am sending request to Arcgis Rest service and getting result as JSON object. I want to zoom to this Ring array. var extent = new OpenLayers.Bounds(extent.geometry.rings[0]); I tried but did ...
1
vote
0answers
44 views

How to simulate events from Openlayers 2?

I am working on a GIS API that uses OpenLayers. I am testing it using QUnit. The problem is I need to simulate clicks and trigger some events to be able to test the whole code. For example, I have a ...
0
votes
1answer
22 views

openlayers 3 function resolution

I'd like to make visible my var text between two resolutions so to speak between 150 and 50 for instance. but I didn't find how to do this yet. var communes = new ol.layer.Vector({ ...
0
votes
0answers
15 views

Pan/Scale/Navigation Buttons Disappearing

I am working on an OpenLayers 2.10 map using Internet Explorer 8 (used by work), and am encountering some issues with the pan/navigation buttons disappearing after sepcific events: If I change the ...
0
votes
1answer
10 views

ExtJS datagrid with openlayers features

I need to populate a extjs datagrid with a openlayers features. Can anyone help me with a source code example?
0
votes
1answer
16 views

TreeLayer GeoExt2

I have a map with several layers and I want to have each layer in separate folder below the root. Can anyone help me with js source code to do that? (geoext2 documentation only separate layers between ...
0
votes
1answer
25 views

Projections when using google maps and rest service on openlayers

I am trying to use a rest service on an openlayers map that has 2 google maps layers. The google map layer is set to it's own custom projection (which I had to code into the library by hand, but I ...
4
votes
1answer
79 views

Change color and format of scaleline

How can I change the format of the scaleline in OpenLayers? I have a black background and I want to change the lines in the scalebar to white. I use: <link rel="stylesheet" ...
0
votes
0answers
18 views

OpenLayers transform control box properties

I'm using OpenLayers for my GIS application. My problem is that when I add a transform control to a polygon feature, it looks very "messed up". The box for the transform control is completely ...
0
votes
1answer
29 views

Syntax for using ArcGIS for Server layer with WMS service?

I am having some issues with getting an image/png format from an ArcGIS Server. The console returns: Resource interpreted as Image but transferred with MIME type application/vnd.ogc.se_xml: ...
5
votes
0answers
2k views

Open Layers Plugin and QGis 2.4 [closed]

I have installed Qgis 2.4 with the stand alone installer and the OSgeo4w too on three different computers. Two have win7 64 and one vista 64. It seems that the Open Layers plugin does not work ...
0
votes
0answers
19 views

OpenLayers vector feature not being highlighted

I'm trying to highlight a clicked area of a layer using a vector: var highlightLayer = new OpenLayers.Layer.Vector("Highlighted Features", { displayInLayerSwitcher: false, styleMap: mystyle ...
0
votes
1answer
34 views

OpenLayers 3 mousePosition projection on the fly

Here is a part of my HTML. I'm displaying coordinates in epsg:3857 using ol.control.MousePosition(). I'd like to convert these on the fly in another epsg:2154, not supported by default. Anyone has an ...
0
votes
0answers
25 views

OpenLayers 2.13.1, how could I make a click, get coordinates, send it to geoserver function?

I am trying to make this very simple function, at the moment I am quite stuck when I have to place the markers as start/end points. I would like to add a marker as start and another as end and then do ...
1
vote
1answer
33 views

How to detect openlayers feature vector intersections in any zoom level?

I have to change vector feature when vectors are intersect each other, I wrote the following code: // check all vectors features (arrows) in the current layer for intersections allArrowFeatures = ...
1
vote
1answer
56 views

Cannot add layer Openlayers 3

I have been trying for a couple of days to perform three very simple tasks combining Geoserver, Opencycle maps base map and open layers 3. I am following the pg_routing workshop as I am using a ...