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

learn more… | top users | synonyms

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. ...
0
votes
0answers
40 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
56 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
47 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
44 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
79 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
90 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
18 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
108 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
47 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
60 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
35 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
31 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
113 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
19 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
76 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
35 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
234 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
53 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
54 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
264 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 ...
0
votes
0answers
73 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
1
vote
1answer
141 views

openlayers - Access to geoserver layers with php authentication

I disable all anonymous requests (wms/wfs/... ) to my geoserver, but now I can't access to any layer from my openlayers app. I want to know if it is possible authenticate on my geoserver via php or ...
0
votes
0answers
12 views

Create shapes using google streets layer of openlayers plugin [duplicate]

I am using openlayers plugin to use as the base layer of streets google. I have attached the picture that you can see that the more I give to zoom overlay layer moves. When I used another shape as I ...
1
vote
0answers
106 views

Openlayers Map Marker / Popup Behaviour Mobile Devices

Quick overview. i am creating a site with a map using Openlayers and Open Street Maps. User clicks on map and fills out a popup form and submits form. Markers appear at lonlat points where map was ...
0
votes
0answers
9 views

WMC as a permalink

I'm using the permalink control in openlayers but there are limitations in the way it handles map's context. For example if users load an external WMS layer it won't appear in the permalink. WMC has ...
4
votes
1answer
63 views

OpenLayers rules and context, what is the difference?

OpenLayers.Style employs two properties, "rule" and "context" which accordingly contain an array of OpenLayers.Rule and a set of methods. I have noticed that "context" can somehow substitute "rule". ...
2
votes
1answer
89 views

Openlayer3 basemap appears white block in Chrome

i faced interesting an issue on Chrome. im using google's 4 number base layer (street, hybrit, etc.) When my tiles are loading over baselayer, baseLayer becomes white block. Why? No any issues on ...
0
votes
1answer
31 views

OpenLayers Vector Legend

I am looking for ways to add legend icons for vector features in OpenLayers. I am aware that GeoExt does this and have trawled through the code - but its not at all clear to me how it functions. Any ...
4
votes
1answer
72 views

Layer is refreshed after an ajax request with openlayers

I can't understand why my vector is empy after this ajax request : function loadKMLTMINT(terminalcode) { MapPanel.el.mask(); Ext.Ajax.request({ url: 'php/GetKMLTM.php', ...
1
vote
1answer
42 views

How do I cycle through the available Overlays and Base Layers using OpenLayers

I would like to have my map cycle through the display of loaded overlays and base layers using Javascript or jQuery. I would like to do this with a delay of 5 seconds between cycling. Does anyone ...
0
votes
1answer
21 views

OpenLayers: How to remove custom controls?

I am trying to remove custom draw controls from my OpenLayers application which I create like this: var drawControls = { polygon: new OpenLayers.Control.DrawFeature(polygonLayerFreehand, ...
1
vote
0answers
46 views

Parse GML with Openlayers

In our project we do a GET request to a WFS service. This service returns some GML. To parse this GML, we are playing with the GML parser of Openlayers. This is working as long the GML isn't ...
4
votes
3answers
212 views

Is there a API which return the geojson data for a countries borders?

Is there a simple free REST API where I can send the name or code of a country and get in return geojson data which highlights it's borders ? I'm writing an application where I will have a changing ...
0
votes
0answers
41 views

Multiple layers from one single KML file

Is it possible to generate multiple layers from a single KML file ? If yes, how can we do it on OpenLayers?
0
votes
0answers
56 views

searching data from wms geoserver in jquery mobile

hye all, need someone help, i use template from openlayer using jquery mobile, im really new in openlayer, i want to search data in wms, the coding is below ...
1
vote
0answers
15 views

Many layers from a unique KML files ? (OpenLayers)

I have a KML file generated from a server that contains many networks. I want to know if is it possible to generate one layer for each network from this single KML file ? Thank you!
0
votes
0answers
20 views

gt:VectorToRaster in Openlayers

i would like to opa vector table using "gt:VectorToRaster" a WPS function in Openlayers. my vector table is stored in Postgis 2.1 and published in geoserver. i need the code to do this, can you help ...