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

learn more… | top users | synonyms

1
vote
0answers
29 views

OpenLayers WMSGetFeatureInfo Windows Mobile

I have built an app using Phonegap build that uses OpenLayers 2.13.1 with wms layers from geoserver and I have a WMSGetFeatureInfo control set up. When I click a point on Windows phone 8, the error I ...
0
votes
1answer
47 views

How to query a PostGIS database through Geoserver and OpenLayers

I've built a web application using OpenLayers, which is connected to my PostGIS database through Geoserver. Now that I'm able to successfully display all of the layers, I'd like to add ...
1
vote
1answer
19 views

Why does OpenLayers render these two AGSCache layers differently?

I am using OpenLayers to try to display aerial maps for two cities (McHenry, IL and Cupertino, CA). By following the tutorial for OpenLayers I have gotten my McHenry example to render correctly, as ...
1
vote
0answers
28 views

Shifting problem with mapfish

I'm using OpenLayers 2.13 with GeoExt and mapfish print module for GeoServer. I've a map composed of a WMS layer and a vector layer. On my web browser everything is fine but when I print this map into ...
0
votes
0answers
49 views

Standard tile origin coordinates for EPSG:3857

Is there a standard tile origin for caching tiles in EPSG:3857? For example OpenLayers as default uses this tile origin for a WMS in mercator projection: lon: -20037508.34, lat: -20037508.34
2
votes
1answer
88 views

How to pass an argument to an event function in OpenLayers?

I am loading to my map two KML layers for which I add a quasi-similar featuresadded event : layerICPE = new OpenLayers.Layer.Vector( "ICPE (Installations Classées pour la Protection de ...
2
votes
0answers
38 views

multiple image in OpenLayers

I'm fairly new to OpenLayers so please bear with me. I'm trying to add multiple images to OpenLayers. I have the following (some code is excluded): var images = [image1,image2,image3] // these are ...
1
vote
1answer
57 views

How can I measure area in square kilometres from lat / lon gps coordinates?

I have code from openlayers that I cannot quite handle because I am so new for these kind of codes. My main goal is to measure area from n amount of lat/lon gps coordinates and convert the result into ...
1
vote
0answers
17 views

How to Create SLD Label with Non-Latin Languages

I create a OpenLayers WMS Layer with my map server url. I want to Style this with SLD_Body. I defined My SLD_Body and want to labeling it. but My Label Map is with non-Latin language and after ...
2
votes
1answer
29 views

How to display MousePosition outside map container? [closed]

I am a new to OpenLayers. By Default the MousePosition displays the coordinates within the map. I need to display the coordinates outside the map is a specific place. How do I do this?
3
votes
0answers
22 views

How do I separate OpenLayers methods from my own, while using inheritance?

I am working on a GIS API, that uses OpenLayers. I initialize the map lke this: xgis.map = OpenLayers.Class(OpenLayers.Map, { var mapOptions = {}; mapOptions.allOverlays = false; /* ...
1
vote
1answer
40 views

How to limit vertically the extent of an OpenLayers map?

When I pan north, the map goes out and I see the white background of my HTML. I want to pan vertically and the map to block when it reaches the top (or bottom, respectively). I have tried to put ...
1
vote
0answers
24 views

Openlayers external GeoJSON error handling

I'm making a map which refreshes itself in a given interval and shows the progress of objects on a vector layer with information from an external GeoJSON file. When the server is not accessible, or I ...
0
votes
0answers
170 views

How to Overlay the WMS Layer on Google map

I want to overlay WMS layer on Google layer of OpenLayers with my map server. but My WMS not Overlayed on it. my code is here: function init() { var map; map = new ...
0
votes
0answers
48 views

geowebcache tiles not showing up in folder

I am using geoserver 2.5.1 and am atempting to use the intergrated geowebcache.I have installed tomcat and am using the webapp process for the geoserver. I managed to add all the tiles and got the jai ...
1
vote
1answer
52 views

Speeding up loading raster

I georeference a tif image and then I clipped that image in a mosaic. I did a index of these images but when I load them is very slow(7 seconds or more to display the first tile). How can I do to go ...
0
votes
0answers
24 views

Problem with OpenLayers.Size and OpenLayers.Bound

When I change OpenLayers.Bound values, the view changes irrespective of size I had defined. In addition to this, I also would like to know why a layer disappears when the OpenLayers.Size is below ...
2
votes
1answer
36 views

Access to custom GeoJSON members in OpenLayers

I need to read a layer-wide attribute, from a GeoJSON file, set by a custom member to the object: {"type": "FeatureCollection", "features": [...], "search_polygon": "POLYGON (...)"} Since it seems ...
1
vote
1answer
96 views

Openlayers WMS getFeatureInfo get features with geometry attribute

I am displaying map using WMSlayer and implemented WMSGetFeatureInfo control on wms layer. Tap on a location and get the features using WMS getFeatureInfo service. This service is returning me all ...
3
votes
2answers
122 views

Recommended opensource solution for storing, publishing and querying GIS data

Our company has millions of feature classes currently stored through ArcSDE on SQL Server 2008 R2. We are kind of slowly making our way to opensource software. What we want to achieve is to be able ...
1
vote
0answers
35 views

POST not implemented

I'm developing a client wps modifying the example WPSDemo.js from http://suite.opengeo.org/4.1/processing/wpsclient/index.html . I'm using zoo-project as WPS server. I'm trying to invoke the "buffer" ...
0
votes
1answer
16 views

How to get pgrouting source and target value using openlayers 2/3?

Is there anyone can teach me how to get the pgrouting's source and target parameters in openlayers 2/3? I plan to get those parameters by click the OSM map layer. Currently, I can only get the lonlat ...
0
votes
0answers
60 views

javascript/jQuery getJSON very slow with a inner loop

asked here too http://stackoverflow.com/q/25024466/528884 I'm using OpenLayers to render DOM for layerswitcher, with about 1200 divs. The problem can be simplified as follows. This is very fast (3 ...
1
vote
2answers
40 views

Baselayer disappears when I draw a layer

I have 3 layers, the base layer and two wms layers. When I load the map, one of them always shows up even when I put visibility:false. And when it shows up, the base layer disappears. What can I do? ...
0
votes
1answer
46 views

Draw Complex shapes

Is it possible to draw complex shapes (polygons) like below image, combining lines and arcs. It is more like a Land Survey plan. So I have coordinates of each point and in case of arc - Radius, Chord, ...
0
votes
1answer
39 views

OpenLayers: draw path with only two points

I want to draw a path with no more then 2 points. On the second point I want the path to be finished. I'm using the OpenLayers DrawFeature, I set a callbacks for "point" where I count the created ...
1
vote
1answer
79 views

Populate geoext2 gridpanel from openlayer vector features

I need to populate a extjs datagrid with a openlayers features. The official example http://geoext.github.io/geoext2/examples/grid/feature-grid.html doesn't help me, beacuse the data is loaded from a ...
1
vote
1answer
65 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
123 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
195 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
307 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
167 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
54 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
29 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
22 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
119 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
41 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
103 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
70 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
42 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
78 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
76 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
27 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. ...