Questions tagged [openlayers-2]

Use this tag when you are using version 2.x of the OpenLayers JavaScript client toolkit.

Filter by
Sorted by
Tagged with
2
votes
1answer
133 views

How to Import Shapefiles (or any dataset) to a webmap using Openlayers/GeoExt online? WFS-T

I tried Using Heron, But it didn't workout well. The problem is, I couldn't found any good documentation about this matter. I just want to "Update" DataSet using an UpLoad tool to my actual Database. ...
1
vote
1answer
476 views

How to insert attributes into a WFS using OpenLayers?

So I have a web app that's running and is able to add points and lines to existing Postgis tables by getting data from Geoserver. I need the following one specific bit of functionality added: I want ...
1
vote
1answer
720 views

How to load 2 different WFS layers using OpenLayers?

I've been trying to load 2 WFS layers with the 3857 projection and I'm only able to load one of them, a line vector layer, while the other (point vector) doesn't load at all. Later I'm going to want ...
2
votes
2answers
374 views

Commiting Changes (WFS-T) Problem with Base Layer (Error Found: outside of (-180.0,180.0))

Committing changes stops working after changing the basemap from OSM (as a WMS) to Bing maps (or Google or even OSM as a "OpenLayers.Layer.OSM") PS: All my layers are on 3857 Here's the Error : ... ...
1
vote
2answers
399 views

Removed features on openlayers 3 is re-rendered on zoom in/out

In map I have Vector with Features inside, upon selecting some other options those features should be changed, therefore, I grab the map, select vector that I need, grab source from that map, and then ...
2
votes
0answers
1k views

How to implement search input (autocomplete) of Google Maps with OpenLayers

I'm trying to implement the autocomplete input search Google Maps in my application, but I use the basemap the GeoServer and OpenLayers, I do not instantiate Google Maps, and I can't... I use this in ...
1
vote
1answer
1k views

Editing WFS from GeoServer using OpenLayers

After reading a very good tutorial on how to edit WFS with OpenLayers, I've tried replicating it but with my own WFS layer from Geoserver. I managed to load the WFS and my basemap successfully and ...
0
votes
1answer
580 views

Create a turf polygon from extents to check intersection with other polygons

I am storing the bbox of layers as strings, as the following string : var layerExtent='[768039.2602094524, 5772524.37609651, 2313901.7202488566, 7435794.111581946]' and I'm using this method to ...
2
votes
4answers
8k views

Disabling map drag and zoom in OpenLayers 3?

I need to disable all map interactions, like map zoom, drag, scroll zoom, any kind of interaction. Is there some easy way to do it?
0
votes
1answer
798 views

Gettings multiple features at pixel

I got an app to do there is a map and lots of points which represent a pictures, for example i got 3 pictures in 1 coordinate, and other pictures has other identical coordinates. But now i need once i ...
1
vote
0answers
77 views

OpenLayers 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 ...
1
vote
0answers
110 views

Getting QGIS SLD From OpenStreetMap [closed]

QGIS has a plugin 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 targeting. When I put the shapefiles on ...
0
votes
3answers
6k 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) "140015.12392378994,147993.86462185346,146949.24235978903,...
0
votes
1answer
92 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
78 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
2answers
770 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 ...
1
vote
1answer
226 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
1answer
3k 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
29 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 = position.lat; ...
-3
votes
1answer
152 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
1
vote
1answer
151 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
569 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
2k 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 on ...
1
vote
1answer
510 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({ ...
1
vote
1answer
465 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 ...
4
votes
2answers
972 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
498 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
183 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 ...
1
vote
0answers
182 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 ,472552.36397,5524962....
2
votes
1answer
969 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 ...
3
votes
3answers
612 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 ...
1
vote
0answers
467 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
66 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 ...
3
votes
2answers
3k 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: http://boundlessgeo.com/2015/06/building-openlayers-3-web-app-...
1
vote
1answer
653 views

Display local tiles with OpenLayers that are generated by MapTiler from a (.tif) georeferenced image

I'm 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 have many folders of png images and two other files: ...
0
votes
1answer
78 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
76 views

OpenLayers 2 with different projection is giving blank page

The code does not give any exception but nothing appears in the browser. This code works with EPSG:4326. Is this the correct way to define projection? See below for the full code: function init() { ...
1
vote
1answer
771 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", ...
2
votes
0answers
23 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
326 views

QGIS Essen 2.14.0 OpenLayers plugins running Windows 7 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 ...
1
vote
1answer
501 views

How to create a choropleth map from a very Large geojson using Openlayers?

I am trying to create a choropleth map using OpenLayers 2 api from a Geojson file that has a size of about 229 mb. I have used the mapshaper tool to simplify the polyogns in this json to about 19 mb. ...
-3
votes
2answers
364 views

How to the display the information in an OpenLayers popup as a two column table?

My pop-up info in OpenLayers is showing its information horizontally (see screenshot below). I would like it to display vertically instead. Is it possible?
1
vote
0answers
149 views

How do I increase the 2mB uploadifive limit in Geoserver installed on AWS?

I've recently migrated a site from Geoserver 2.1.4 installed on a hardware server to Geoserver 2.7.0 installed on an Amazon Web Service. The site uses uploadifive to enable the user to upload a pdf to ...
1
vote
0answers
417 views

How to getfeatureinfo results in a column than a row from geoserver postgis openlayers

Below is a snippet of a code I modified from openlayers. Basically, I click on a wms map and data from postgis is queried by geoserver and served on a single row table. There are 11 variables in the ...
1
vote
0answers
300 views

GeoServer web application

I'm trying to create a web application using GeoServer. When I try to see the file var/lib/tomcat8/webapps/geoserver/data/www/ol-demo.html, no map appears, just the title "GeoServer OpenLayers Demo" ...
6
votes
1answer
3k views

Geodjango with Geoserver and Openlayers

I am trying to teach my self Django and its spatial extension geoDjango. There is one thing, which is still a bit foggy in my mind. When using the trio: Postgis, geoserver, openlayers is perfectly ...
2
votes
1answer
1k views

Displaying KML Extended Data in OpenLayers?

I have just got a problem displaying extended data from a KML file in OpenLayers 2. I hope you can help me with this issue. I have already searched for a solution, but I do not find a real solution ...
-1
votes
1answer
521 views

GetFeatures from WMS using angular-openlayers-directive

How do I get features from a WMS layer using angular-openlayers-directive? I've been trying to figure that out, but can't find a way to do it.
2
votes
1answer
88 views

Need Help on Multiple External SLDs for GeoServer LayerGroup

I have a layer group called "basemap" in my GeoServer made up of 3 layers but their SLDs needs to be styled dynamically so I have decided to create a XML web service for the external SLDs but I am ...
2
votes
0answers
159 views

OpenLayers measurment path in 31700 projection

I have this code who works great for distance measurment on 900913 projection with 4326 display projection (bing maps + layer WMS): measureDistanceControl = new OpenLayers.Control.Measure( ...

1
3 4
5
6 7
66