Use the OpenLayers 2 tag when that is the version you are using of the OpenLayers JavaScript client toolkit.

learn more… | top users | synonyms (1)

-4
votes
0answers
4 views

GeoExt:make wfs layer [on hold]

Can u help me with WFS on GEOExt ? i try this tutorial http://workshops.opengeo.org/geoext/wfs/grid.html it's work but point is not saved!! someone know the probleme ?
1
vote
0answers
9 views

OpenLayer popup FramedCloud in mobile

How I can use the pop-up window in Openlayers on mobile? I have implemented the FramedCloud popup on my website, but when I open my web browser on a mobile device, the popup window does not seem to ...
0
votes
0answers
14 views

GetFeatureInfo on a cascading WMS Connection using GeoServer

I have a web application developed in OpenLayers 2.13 that makes a GetFeatureInfo request on a layer, ws:gl_structure, published by a GeoServer (GeoServer_front). The layer gl_structure is a layer ...
0
votes
0answers
7 views

two select Controls that use different style

I want to use two different OpenLayers.Control.SelectFeature Controls on a Vector Layer. One that selects features on mouse-click, the other one for marking features with certain attributes after a ...
1
vote
0answers
16 views

Getting QGIS SLD From OpenStreetMap

QGIS has a pluging called OpenLayers. From that plugin, we can get a very pretty map. I have downloaded some shapefiles for the region (a city in my case) I am targetting. When I put the shape files ...
0
votes
2answers
24 views

Split string of coordinates and put it in array

After doing the funtion: cirkelFeatures[1].getCoordinates().toString() I'am receiving the coordinates of the polygon (they are in epsg 31370) ...
0
votes
1answer
22 views

OpenLayers GeoJSON File

I am trying to add a GeoJSON file to my OpenLayers application and I am getting a cross origin request error. My main question is can a GeoJSON be stored locally (within a folder on my C drive) and ...
1
vote
0answers
14 views

Loading single feature from server - layer property is missing

I have a layer that consists of a few 100 features, of which only those are loaded that fit into a bounding box. Later, I want to check on the server side, whether a specific feature with a specific ...
1
vote
0answers
27 views

OpenLayers misinterpreting Lat/Long

I am currently plotting points on a Open Street Map and using the Lat and Long of a point I know of seems to yield different positions on Google Maps and Open Street Map. //The standard for lat/long ...
0
votes
0answers
19 views

OpenGeo simple editor app

I've built an OpenGeo Suite simple editor app using this tutorial: http://suite.opengeo.org/docs/latest/webapps/ol3/templates.html#creating-an-editor-application. To see it, I have to run suite-sdk ...
1
vote
1answer
27 views

openlayers and geoext

I have created a WMS layer in geoserver. I have added that WMS layer using openlayers and geoext. The WMS layer is displaying, but when I zoom in, the layer disappears and when zoomed out the layer ...
0
votes
0answers
23 views

how to put tags with markers in openlayers?

I want to put tags with marker in openlayers for example something like this.. EDIT Due to some circumstances I've replaced the image now like the same thing happening in googlemaps with ...
0
votes
1answer
49 views

how to put marker on particular lat,long in openlayers?

I am unable to put marker on specific lat,long here what is i am trying.. <script src="http://cdnjs.cloudflare.com/ajax/libs/openlayers/2.11/OpenLayers.js"></script> <script> ...
1
vote
0answers
16 views

Function access to surrounding object's variable

var CreateFeature = OpenLayers.Class(OpenLayers.Control, { clazz : "xyz", set_item : function(e) { var position = map.getLonLatFromPixel(e.xy); var latitude = ...
-3
votes
1answer
24 views

what is the basic programming language or code language for raster swipe tool? [closed]

How to develop a Swipe tool for rasters or vectors (Spatial layer) like openlayers or ErdasImagine. Can any one give me the references please
0
votes
0answers
19 views

How to get coordinates from embedded OL-map?

Not sure, if I'm right here, but I want to parse/get the "map center" from an embedded OpenLayer-map for a row of websites. I failed with BeautifulSoup, i've worked so far with python here. The ...
1
vote
1answer
19 views

Geometry column of new feature is not stored

var saveStrategy2 = new OpenLayers.Strategy.Save(); var vectorLayer = new OpenLayers.Layer.Vector("Vectors", { strategies : [new OpenLayers.Strategy.BBOX(), saveStrategy2], protocol : new ...
0
votes
1answer
29 views

Equivalent of OpenLayers 2 ol.Layer.Text in ol3 (to show POIs)

I have this OpenLayers 2 code that I want to convert to OpenLayers 3: var pois = new ol.Layer.Text( "My POIs", { location:"/media/pois.txt", projection: ... } ); map.addLayers([ ...
5
votes
3answers
105 views

prevent osm to load tiles on zoom level > 19

layer_osm = new OpenLayers.Layer.OSM( "Simple OSM Map","",{ isBaseLayer : true, displayInLayerSwitcher : false, numZoomLevels: 26, }); I have several WFS and WMS Layers ...
0
votes
1answer
33 views

Geoserver Mapfish Print Fails

I use Geoserver 2.8.1, Openlayers 2.12, GeoExt 1.1 on a Windows machine. I can successfully print a map using the Print Provider below: var printProvider = new GeoExt.data.PrintProvider({ ...
0
votes
0answers
8 views

Which event is triggered when map.setCenter(lonlat,zoom) has been successfully completed?

I expected it to be zoomend, like map.events.register("zoomend", null, callback);, but that does not seem to work. Which is the right one (and how do I find out)?
0
votes
0answers
9 views

How to clip canvas rendering to a geojson in openlayers

Something I was interested in is clipping a geojson shape to a map. In the following example they are able to clip to a heart shape. ...
1
vote
1answer
38 views

I can't tell if my GeoJSON file is too large for openlayers

I am a bit new to this GIS thing. I have shapefile that I fed to geoserver in order to retrieve a GeoJson file. I was attempting to display this on openlayers, but it won't show anything. The file is ...
0
votes
0answers
23 views

OpenLayer WMS Polygon Fill color dynamically

i am new to OpenLayer Geoserver and PostGIS. I want to color my WMS Polygon Layer which has multiple polygon in different color based on some value. Is this possible with wms or wfs. Color for polygon ...
0
votes
0answers
21 views

Multiple measures polygon with openlayers 2.13

my question is simple, is it possible to do multiple measures with OpenLayers 2.13. Something like this example, instead of this I can't use OpenLayers 3 for now.
1
vote
1answer
39 views

Openlayers GEOJSON

I'am trying to show some points. The coordinates are in the file 'test.json'. But they wouldn't show themselve so i suppose there is something wrong with the code? <!doctype html> <html ...
4
votes
2answers
87 views

Openlayers 3 connecting to a wms feed with a different projection

I am trying to incorporate a wms feed in the British national grid projection (EPSG:27700) into a openlayers 3 project. I initially had used this wms layer in an openlayers 2 application using the ...
1
vote
0answers
36 views

Multiple geometry types layer in Geoserver?

I am using OpenLayers and Geoserver in a web map application in which I'd like to implement editable layers by drawing features on it. I followed this tutorial to save the created features with WFS-T ...
0
votes
1answer
31 views

Cannot remove last Point from Cloned Geometry in OpenLayers (in DynamicMeasure.js Control)

I am working with OpenLayers-2 and currently can't figure out why I cannot remove the last Point from a cloned LineString-geometry. This is my original geometry, a LineString with three points and ...
0
votes
0answers
18 views

MapGuide Fusion OpenLayers 2.13 ModifyFeature - how to get input object from Fusion…?

I'm looking for a way to pass the Fusion object's selected geometry into OpenLayers.Control.ModifyFeature to initiate an edit session for the user. Non-Fusion Example: ...
0
votes
0answers
19 views

how to display multiple markers and save his position in database

I create a proyect in openlayer 2.13 and i would like to let users add custom markers on a map and save the position(latitud and longitud) of this markers in a table of a database or in some txt. ...
1
vote
0answers
23 views

set OpenLayers.Map extent dynamically

if (workspace=="x") { bbox = [3461431.90483,5555489.54044,3461896.81256,5555951.68634]; } else if (workspace=="y") { bbox = [471730.87469,5524059.31339 ...
1
vote
0answers
58 views

Yandex Traffic layer position issue with using openlayers

i have got issue about traffic map with using openlayers library. Traffic layer shifting from sublayer. so roads and streets are mismatch. can you help me please. in jsfiddle The code from the ...
0
votes
0answers
14 views

what is “param” exactly in filterToParams in OpenLayers?

I don't exactly get the way to use filterToParams in OpenLayers 2. I get the data via HTTP-Protocol, format gml, but when I check the params in firebug, it does not contain anything. So I've tried to ...
3
votes
3answers
58 views

Projection offset between layers: OSM, GeoJSON

Don't know why there is an offset: The coordinates of the points that appear on the example were gotten through google's geocoder from some Rosario, Argentina directions. I have checked the lats and ...
0
votes
0answers
23 views

Why don't latitude and longitude match with others one?

I have a latitude and longitude: 60.011887, 30.37898 When I add marker to openLayersMap I get this marker in another place. Why does this happen? here is the code: var MyMap = (function() { var ...
1
vote
0answers
26 views

Problem with previewing layer on geoserver ( instead of downloading wms file ) [closed]

When I hit OpenLayers to preview my layer in Geoserver, instead of opening a new tab with OpenLayers it automatically downloads a wms file I just opened the wms file and says : <?xml version="1.0" ...
2
votes
0answers
17 views

Trigger event after KML Layer completely loaded

I want to set the bounds of my map after a Vector (KML) Layer is loaded. kmllayer.events.register('refresh', kmllayer, function(evt) { map.zoomToExtent(kmllayer.getDataExtent()); }); In the ...
0
votes
0answers
50 views

Leaflet self-intersecting polygons display

Is it possible to set colors of the actual intersections of self-intersecting polygons in Leaflet? Example of such self-intersetions can be found on the pic below, the transparent triangles inside of ...
3
votes
2answers
171 views

QGIS Desktop 2.12.3 WebApp Builder

I want to use the WebApp Builder in QGIS 2.12.3 But I can not find the QGIS Web App Builder in my QGIS version 2.12.3 Like this one: ...
0
votes
0answers
42 views

display local tiles with openlayers that are generated by maptiler from a (.tif) georeferenced image

im working on a mobile app and trying to use my locally stored tiles that i generate using maptiler software. after tiling my image.tif i got many folders of png images and two other files : ...
0
votes
1answer
22 views

Styling in OpenLayers2: unknown symbol name

I'm using Geoserver 2.8.1 and OpenLayers 2 to visualize cartographies, the geoserver documentation indicates I can use extra symbols in my SLD, the "shape://oarrow" for example : <Mark> ...
1
vote
0answers
24 views

OpenLayers2 with differnt projection is giving blank page

I have copied the full code. the code does not give any exception but nothing comes on browser. This code works with EPSG:4326. Is it the correct way to define projection? function init() { ...
1
vote
1answer
79 views

OpenLayers 2, JSON vector through WFS

Consider this example, https://geoext.github.io/geoext2/examples/grid/feature-grid.html It uses protocol: new OpenLayers.Protocol.HTTP({ url: "../data/summits.json", ...
0
votes
0answers
15 views

Cannot change resolution programmatically in OpenLayers

I am using OpenLayers 2 with GeoExt 2. Map is created using the following code: var mapOptions = { minExtent: minExtentBounds, maxExtent: maxExtentBounds, restrictedExtent: ...
1
vote
1answer
260 views

Error Opening OpenLayers plugin in QGIS [closed]

I have installed version 2.12 of QGIS and I have installed the OpenLayers plugin. However, when I try to add a basemap through Web > OpenLayers plugin I get the following error message "An error has ...
0
votes
0answers
9 views

How to get names and property of all the vector layer within my work space? [duplicate]

I am using Geo Server for storing my vector data. now i want to fetch all the layer name and its properties/attribute from my work-space. Can anybody please let me know is there any API or anything ...
0
votes
0answers
19 views

Image is not loading on the base map

I have installed Geoserver on Ubuntu and windows the problem is i can not load the images on the map, my javascript code is given below. var layerSwitcher = new ol.control.LayerSwitcher(); ...
2
votes
0answers
18 views

layer styling switches after zooming in with no reason

Does anybody have an explanation how it is possible? I have a strange trouble on the following map. The surrounding land layer, which is only a one polygon layer and is styled normally like: var ...
1
vote
1answer
137 views

QGIS Essen 2.14.0 open layers plugins runing windowa7 64 bit

I cannot make any OpenLayers plugin visible for the part of the world for which I plot vector points. I set CRS to WGS 84 / Pseudo Mercator. After adding a layer of points it should be trivial to ...