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

learn more… | top users | synonyms

0
votes
1answer
9 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()], ...
-1
votes
0answers
12 views

how to create an web mapping application with jsf and geoserver? [on hold]

I should create an web mapping application using jsf to display map and layers from geoserver and i don't know how to do it any helps ?
0
votes
1answer
13 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 ...
0
votes
0answers
15 views

Get Zoom Level based from the Map Scale

I don't know if this is possible to do but I wonder if it is possible to get the current zoom level in an Openlayers.Map just from the Scale and without using getZoom() function.
0
votes
1answer
17 views

help adding WFS from Geoserver

I know that this topic has been discussed several times before, but I cannot seem to figure out what is going wrong with my script, and why it wont display the layers from geoserver. I have gone ...
1
vote
0answers
9 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
14 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
14 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
11 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
40 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
13 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 ...
0
votes
0answers
10 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
63 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
21 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
15 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
31 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
43 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
16 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
12 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
0answers
5 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
0answers
12 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
17 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
73 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
16 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
25 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
1k views

Open Layers Plugin and QGis 2.4 [on hold]

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
18 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
26 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
23 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
28 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 = ...
0
votes
0answers
40 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
24 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
58 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
30 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
7 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 ...
3
votes
1answer
17 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". ...
0
votes
1answer
12 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
30 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
27 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
15 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, ...
0
votes
0answers
17 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
90 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
19 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
21 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
12 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
13 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 ...
0
votes
1answer
49 views

Do I need a Google Map API key for using GoogleMap in my project?

Do I need a Google Map API key for using GoogleMap in my project where I am using OpenLAyers2.13?
0
votes
2answers
51 views

How to change Overlays checkbox feature in layerlist to radio button

How to change the default checkbox button of Overlays in Layerlist to radio buttons. My cliet dont want his users see more than one layer on the map. Is there any way that we can prevernt the ...
1
vote
1answer
72 views

Is there any readily available implementation of Mapserver (or Geoserver)- Postgres-Openlayers combination?

I am developing an web GIS for map data presentation for public. Is there any readily available implementation of Mapserver (or Geoserver)- Postgres-Openlayers combination or similar? More Details: ...