Tagged Questions

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

learn more… | top users | synonyms

2
votes
1answer
133 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
1answer
215 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
338 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 ...
1
vote
0answers
38 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
181 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 ...
0
votes
1answer
63 views

Routes Consult with pgrouting / openlayers [closed]

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
59 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', ...
1
vote
0answers
30 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 = ...
2
votes
1answer
36 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. I have a GeoServer which contains a shapefile with some roads on it. Is it possible to programmatically query ...
0
votes
0answers
19 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
28 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
vote
1answer
131 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
22 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
42 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
1answer
105 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
75 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
45 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
40 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
82 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
79 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
22 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
28 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
44 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
15 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
57 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
48 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
45 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
19 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
82 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 = ...
1
vote
1answer
23 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
91 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
19 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
87 views

Feature not added to KML Vector Layer in Firefox

UPDATE simplified with JSFiddle example: here is the most simplistic JSFiddle showing what I mean: http://jsfiddle.net/eflowbeach/75eq1mqe/ You can see in Chrome and IE that the feature appears, in ...
0
votes
0answers
110 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 ...
1
vote
1answer
30 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 ...
3
votes
1answer
48 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 ...
2
votes
0answers
61 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
37 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
26 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
24 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
32 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
35 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
117 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
20 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
77 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
5k 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
37 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
255 views

OpenLayers 3 mousePosition projection on the fly

I'm displaying coordinates in epsg:3857 using ol.control.MousePosition() with OSM. I'd like to convert these on the fly in another epsg:2154. I call in the header : <script> ...
0
votes
0answers
54 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 ...