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

learn more… | top users | synonyms

1
vote
0answers
23 views

Use Ushahidi api in another map using openlayers

I have a ushahidi deployment and i am using Openlayers + ushahidi api to show the reports in a separate map along with other features. i have queried the data from ushahidi api and made a vector ...
2
votes
1answer
16 views

Print Maps - OpenLayers, GeoServer, GeoExt, MapFish

Can anyone point me towards a clear and unambiguous description of how to install and code a very simple map print function for OpenLayers/GeoServer? I am using GeoServer 2.5.2 and OpenLayers 2.12 on ...
0
votes
0answers
9 views

Openlayer 3 interaction Select Problem

i have a problem as a short and clear. When i use the snipped code var select = new ol.interaction.Select({ condition: ol.events.condition.mouseMove }); base map's mouse click drag is ...
0
votes
1answer
8 views

Error XMLHttpRequest cannot load openlayers geocode

I'll make a page for viewing routes with openlayers, postgresql / postgis and pgrouting. The part of the seat is already ok, I'm using OSM data. The image below is to illustrate what I'm doing now: a ...
0
votes
0answers
21 views

Openlayers edit feature attributes via popup

I need help. I am working on web map with openlayers. I'm not a programmer and I've never used openlayes before, so my knowledge is limited. My map contains WFS protocol and everything in connection ...
0
votes
0answers
11 views

Draw linestring programmatically using draw control

I want to draw linestring feature programmatically which can be done from draw control of openlayers which can inherit default behavior of draw control that is modification, selection, undo, redo etc ...
2
votes
3answers
32 views

How send Geoserver WMS GetFeatureInfo query to an area

I am using GetFeatureInfo query to WMS service. When I click a WMS object on the map, the response is coming. http://localhost:8080/geoserver/wms? request=GetFeatureInfo &service=WMS ...
-2
votes
0answers
31 views

problem in accessing wfs layer

I am running openlayers app on tomcat on localhost:8080 in windows plateform and trying to access wfs layer from server system 103.8.40.126:8585/ but i am facing problem, wfs layer is not accessible ...
0
votes
1answer
26 views

Routes Consult with pgrouting / openlayers [on hold]

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
31 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
14 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 = ...
-1
votes
0answers
51 views

How to proxy GeoServer through Tomcat in Windows? [on hold]

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
10 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
7 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 [closed]

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
39 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
8 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
24 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
36 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
20 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
27 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
45 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
20 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
31 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
27 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
23 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 ...
4
votes
2answers
59 views

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
91 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
33 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
45 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
1answer
20 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
80 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" ...