The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

Offline Base Layer using stored KML or GEOJSON file

Using OpenLayers 2, I want to have an offline baselayer, that is loaded from a KML or GEOJSON file. I am successfully able to do this if I first load a baselayer from google maps. For example, this ...
0
votes
0answers
15 views

Accessing and manipulating the tileCache for XYZ source

I would like to be able to clear certain tiles from the TileCache. It seems that the tileCache is always undefined for my source. Here's a simple getter I wrote to get the tileCache for my source: ...
0
votes
0answers
16 views

How send wfs transaction data on json format in Openlayers?

I use a wfs layer in my project with openlayers as follows: var saveStrategy = new OpenLayers.Strategy.Save(); me.point = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new ...
0
votes
0answers
11 views

Modifying record of table with GeoTools? [on hold]

I'm developing a GIS application with java. I use Spring RESTController and GeoTools. In client side(I use Openlayers 2.13.1), user modify a feature of wfs layer and want to update it in server side. ...
0
votes
0answers
14 views

How to set extent and zoom level based on extent in openlayers?

I had a problem to set the extent and the zoomlevel in openlayers using GeoExt2. My problem is how do I know extent: [minx,miny,maxx,maxy] the minx,miny,max,maxy in openlayers ? So, I can set the ...
1
vote
0answers
17 views

Using WMS layer transparency with Geoserver, Openlayers and Drupal?

I am using OpenLayers in Drupal to display Geoserver WMS data. I can get the layer to overly properly, however the raster layer (png) has a white background I cannot remove. I have created a style in ...
0
votes
0answers
16 views

ExportMap in OpenLayers not finding canvas property in layers

I am trying to follow this example to export map to canvas: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html But, it is failing at this line ...
0
votes
1answer
8 views

Openlayers cluster stragegy total count

How can I get total feature count of vector layer: var mylayer = new OpenLayers.Layer.Vector(null, { "protocol": myWFSProtocol, "styleMap": style, "strategies": [ ...
0
votes
1answer
9 views

Make OpenLayers filter initially empty

I have an openlayers vector layer that loads data form service. But it loads all data initially. var mylayer = new OpenLayers.Layer.Vector(null, { "protocol": myWFSProtocol, ...
0
votes
0answers
13 views

How to check if a polygon contains another polygon in OL3?

Is there any possibility to check if a polygon is contained in another polygon in OL3? I noticed there is a couple of methods in ol.extent e.g. ol.extent.containsExtent(extent1, extent2). But this ...
0
votes
0answers
10 views

Print composer dislocation when export to pdf or png [duplicate]

I am working in QGIS 2.8.1 and I finished the map at print composer, but when I export to a PDF or PNG file the final output shows a dislocation of polygons over a openlayer (Google earth image). I ...
0
votes
0answers
22 views

Layer animation with slidebar

I am trying to create a slidebar with different layers for each position of the slidebar. When the slidebar value is changed the new tile is loaded and there is also an animation button that changes ...
0
votes
2answers
20 views

Viewport bounds online update. OpenLayers

I am trying to extract the bound box coordinates of viewport (the box that is displayed). I want to know the coordinates all the time and updated when zoom in/out or dragged. I cheched that ...
0
votes
0answers
31 views

Limit Extent of OpenLayers Map in QGis

I am trying to work with a OpenStreet map of Ontario, using the OpenLayers plugin. The problem is that the entire global view renders, slowing down my work. A couple of solutions come to mind: ...
0
votes
1answer
21 views

How to display GeoWebCache local tiles with OpenLayers 3?

I've created local tiles using GeoWebCache and they are inside local folder names : Layer - EPSG_4326_9- - 19_10 - - 0608_0339.png ...
0
votes
0answers
27 views

Unable to add WFS layer from GeoServer

I created a webpage which adds map layers from GeoServer as well as running a query for a specific object in a table "urbanaddress". It then adds it as a wfs, then finally zooms to that object on the ...
0
votes
1answer
19 views

How to join a WFS layer to a table in OpenLayers

So I have to bring up this old question How to join a WFS layer to a stand-alone table in OpenLayers I recently have to get this working, I have to join a WFS layer data from GeoServer using postgis ...
0
votes
1answer
14 views

Get OpenLayers.Control.MousePosition in Toolbar

I have created an OpenLayers.Control.MousePosition: var coord = new OpenLayers.Control.MousePosition({ prefix: 'You are here: ', separator: ' | ', numDigits: 5, ...
1
vote
1answer
40 views

How to Prevent Small Polygon WMS Features to be Hidden when Zoomed Out (GeoServer + OpenLayers)

Currently I'm developing a Web-GIS app where I use Geoserver 2.61 and OpenLayers 2. The map data is served from PostgreSQL+PostGIS via Geoserver (WMS). I'm having a problem when I'm viewing polygon ...
0
votes
1answer
30 views

how to add map into browser using openlayer3 and geoserver?

i am new in openlayer 3 , please check my code , no error showing in console , but map is not showing in browser , please help mymap <style> body ...
0
votes
1answer
38 views

Layer Tree and Layer Switcher (OpenLayers and ExtJS)

Is there any possibility to get only the Base Layers (for example OpenLayers) in the LayerSwitcher and only the Overlays in the LayerTree? I tried "'displayInLayerSwitcher': false", but with this my ...
0
votes
0answers
22 views

Like query with “singleChar” does not work correctly in OpenLayers.StyleMap

I am working on a GIS API, based on OpenLayers 2.13. I want to represent my data using WMS and Vector layers. Recently, I have started developing the support for LIKE queries in filters and in style ...
1
vote
0answers
19 views

Transform GeoTiff to WMT

I'm not a gis specialist at all so this question may seem dummy to you. I have a GeoTiff base of images (hundreds) I'd like to transform to a WMTS repository to put behind a web server. Web pages are ...
0
votes
0answers
17 views

How to make Openlayers feature icon dynamic color

I would like to make the icons of my features in the map have dynamic colors. I think I have to use SVG so I can use CSS to dynamically change the icon's color but I don't know if I can use it as an ...
1
vote
2answers
67 views

Is there any library can perform polygons buffering/ inflating/ merge/ overlap at server side?

I have a set of polygon data express in lat long. I would like to perform some tasks (polygon buffering, inflating etc etc ..) in server side and output the result to client side (client is a web ...
0
votes
0answers
24 views

How to Transform from Pixel Coordinates (LCC Projection) to Lat/Long?

I want to transform pixel coordinates from a vector graphic (as .svg) to long/lat values. My vector graphic represents germany and consists of multiple polygons. I've already successfully written a ...
0
votes
1answer
23 views

Do Vector-tile file-names need zoom levels and if so, why?

I'm new to mapping and m looking to self-host some PBF-based vector tile files, mainly for a hybrid mobile app (Phonegap, HTML5, Openlayers or Mapbox-GL-JS). My question is, if I need to generate or ...
-4
votes
1answer
33 views

Openlayers PanZoomBar won't work [closed]

In which cases PanZoomBar in Openlayers won't work, and what could be the solution? I'm using Openlayers 2.13, and sometimes, i cannot scroll to zoom in/out, only by clicking can be zoomed.
0
votes
3answers
24 views

why use geoserver layername workspace prefix?

I am using openlayers to consume geoserver. I have created a geoserver WMS layer and preview it. var tiled = new OpenLayers.Layer.WMS( "GIS:pipelines - Tiled", ...
1
vote
3answers
117 views

How to get extent of multiple geometries?

I can query a geometry extent like this: select ST_Extent(geom) from tableName; But sometimes I am querying geometries more than one. I am getting 5 points that different locations. So I wanto to ...
0
votes
2answers
30 views

Is there a way to use IN filters in OpenLayers?

Is there a way to use IN filters (like the IN operator from SQL) in OpenLayers 2? For example, let's say, I want a filter like this: city = 'Paris' OR city = 'London' OR city = 'Lisbon' In ...
0
votes
0answers
32 views
1
vote
1answer
45 views

draw square openlayers 3

I am starting to convert old code of openlayers 2 to openlayer 3. In the old version you could make polygon shape based of the amount of sides like in the example below: ...
1
vote
0answers
35 views

How to get geoJSON from spring REST Controller?

I am developing a GIS application with java(Spring-4.1.5 + Hibernate-4.3.8) and OpenLayers. For this project I use GeoTools-13RC, HibernateSptial-4.3, jts-1.13 and jackson-2.5. In this project, I have ...
1
vote
0answers
17 views

How get geoJson layer whit geoTools? [duplicate]

I have a class in java: "MyPoint" Class: @Entity @Table(name="MyPoint") public class MyPoint{ @id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long Id; @Column ...
2
votes
2answers
82 views

Multi label with mulit placement in OpenLayers

I have a vector layer in OpenLayers. It has some attributes like left, right, top, bottom, etc. I want every feature to be multi-label (to have more than one label). The javascript code is as follows: ...
1
vote
1answer
278 views

Open Layers Plugin not working in QGIS 2.8.1 [duplicate]

I am using QGIS 2.8.1. I have installed the Open Layers Plug, however it is not showing up in my list of plugins. I confirmed it's installed in the plugin manager. Is anyone else having this issue?
0
votes
1answer
19 views

A method for limiting the number of results the Get Feature Interaction brings through in OpenLayers 3

I have so far managed to return a list of all the customer names at a single point when the vector layer is clicked on. I am looking to limit this to only show the first (or just one) record.Could ...
0
votes
1answer
17 views

Limiting returned records for an interaction in OpenLayers 3

I have the following script that returns a list of all the customer names at that point when it is clicked on. I am looking to limit this to only show the first (or just one) record.Could this be ...
0
votes
0answers
22 views

OpenLayers - Adding the title parameter to a feature

I have the following layer: marker = new OpenLayers.Layer.Vector('marker', { styleMap: new OpenLayers.StyleMap({ externalGraphic: '../images/marker.png', ...
3
votes
1answer
26 views

Logging in Openalyers3

How to use the console.log() on openlayers3 objects? For example if I log the map object in openlayers2 this is a result. Here i can observe the map, layers, baselayers etc. and its very helpful in ...
1
vote
0answers
27 views

Understanding Openlayers MapServer configuration?

I need to implement functionality like this http://www.mpbhuabhilekh.nic.in/bhunakshaweb/. I searched on net and found it can be done using Openlayers. I need simple and clear steps on how to to ...
0
votes
0answers
18 views

How to add vector layer in Open Geo Suite?

Plugin for the add vector layer:- OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, { isBaseLayer: !1, isFixed: !1, features: null, filter: null, selectedFeatures: null, ...
0
votes
0answers
34 views

Making CQL filter to work for all the overlays layer

In my application I am using multiple layer as overlays and want to use CQL filter to work for all of them. Can CQL filter be applied to base layer as well as more than one overlays layer? If yes, ...
1
vote
2answers
39 views

What are GeoExt alternatives?

What tools do I need to accompany OpenLayers to achieve what GeoExt is capable of? GeoExt can show frames of TOC, legends, etc. And how about jQuery and Bootstrap combination? Can that became a ...
0
votes
0answers
28 views

Heron mc/ Openlayers wms load

I have configured a webviewer using Geoserver/Openlayers/Geoext and Heron-mc. In the examples the overlays and baselayers automaticaly load when first starting the application. I have changed the ...
0
votes
1answer
37 views

Calculate distance between two points in projection EPSG:900913

I have two points in 900913 projection and I want to calculate the distance between the points. I don't want to transform points to 4326 and then calculate. How do I do this?
0
votes
0answers
15 views

Openlayers bounding box dateline crossing

I got a map layer on which a bounding box is drawn. This is working quite well except when east < west which means the date line is crossed by the bounding box. In this case the box is drawn like ...
1
vote
0answers
20 views

Printing a map using GeoExt, Openlayers and GeoServer

I am trying to print an Openlayers map using GeoExt and Geoserver. Here is the code printProvider = new GeoExt.data.PrintProvider({ url: printServiceURL, method: "POST", // "POST" ...
1
vote
1answer
26 views

Create Multiple Circle

I am trying to make many points in a map as a grid. The code makes what I expect but the time to load is quite long so I suppose that there should be other ways to be more efficient drawing many ...