The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
23 views

OpenLayers3: How to selecting a feature by dropdown menu and zoom? [on hold]

I'm working with Openlayers and geojson files. I am able to load and select by click. Now I would like to select a feature by a dropdown menu (populated with feature attributes), have it selected in ...
0
votes
2answers
21 views

Set a new SLD style in openlayers 3 for WMS request

I im triyng to submit a SLD style in openlayers 3 to change the color of my WMS(geoserver) But nothing is working...Anybody have a idea? Here is my code: var wms_p_popf = new ol.layer.Tile({ ...
1
vote
0answers
15 views

OpenLayers2 to OpenLayers3 WMS

I have a working openlayers2 application currently. To create the WMS layer in OL2, I use: layer = new OpenLayers.Layer.WMS('WMS', '../../WMS/floorplan?', { layers: '@Model.LayerName', ...
0
votes
0answers
15 views

check if a layer has a wrong format openlayers

I have two vector layers that can be added to the map - KML and GeoRSS. The format of the layer is applied based on the dropdownbox value. I need to find a way to check when the loaded layer has a ...
-1
votes
0answers
33 views

How to generate map using geoserver & openlayers in java from postgis data? [on hold]

I am a newbie in geoserver and want to know how to render map (postgis database) in openlayers using geoserver? I want to add the base layer. I tried: var layer = new OpenLayers.Layer.WMS("OpenLayers ...
0
votes
1answer
13 views

Openlayers 3 and map captions i18n

All captions are displayed in native language when using Openstreetmap as source and that makes map too hard to read when looking at Asian countries. Is it possible to use user selected language or ...
0
votes
0answers
11 views

openlayers- how to select polygon on mouse over a point present within this polygon

I have two layers: polygon and point layer. Here each polygon contains one point. And I want to select the polygon when I mouse over this point. Is it possible in openlayers 2.12
1
vote
0answers
11 views

Openlayer2: clustering with stylemap

I am using OpenLayers 2.13.1. I could get my clustering work for the vector layer but when I try adding a styleMap to the vector layer, neither the clusters nor the individual points are visible on ...
2
votes
1answer
13 views

SLD fill-opacity not having any effect

I am attempting to draw a WMS layer consisting of multiple polygons of different colours and an opacity of 0.4. The relevant part of my SLD is <PolygonSymbolizer> <Fill> ...
0
votes
0answers
9 views

Display MapServer Legend in GeoExt using OpenLayers

I have been trying to get my MapServer legend displayed in a GeoExt app using OpenLayers. I am quite new in MapServer and web mapping. Only a vector legend, and my OpenStreetMap legend is displayed. ...
0
votes
0answers
21 views

GetFeatureInformation Button Won't Retrieve data in a shapefile

I'm using HERON with google maps,everything seems to be fine except for the getFeatureInformation. I'm not really sure what the problem is as I'm still a beginner. I don't know if it's the layer ...
0
votes
1answer
53 views

OpenLayers 2.11/2.13.1: Working example to group layers in LayerSwitcher

I am looking for a nice plugin with working examples to group layers un OL LayerSwitcher. I found several emails and posts explainig that GeoExt is the best way to do this, but have only access to OL. ...
0
votes
2answers
27 views

How to execute ol.extent button from a new button in OpenLayer 3?

I'd like to move the ol.extent button that it shows in div.map to new button in another div. I have the following code but without success: <a href="" data-toggle="button" ...
0
votes
0answers
12 views

Openlayers Tile feature Strategy with Google/search spider Indexing

I've 1-2 million geo-located points, ranked by an importance. Most of these will be of zero importance. But between 100,000 and 200,000 points will be of particular interest. Lets say ranked by ...
1
vote
1answer
49 views

Proper way to create indoor map in GeoServer

I'm trying to create an indoor map(from floor plan) in GeoServer and display in via OpenLayers. The only way that I found is to create a Store in GeoServer(in my case, using ImagePyramid) from ...
0
votes
0answers
13 views

Openlayers 3 equivalent of Openlayers 2 OpenLayers.Protocol.HTTP.options.params?

Is there a way to send data to the server with POST request instead of GET ? I used to use Protocol.HTTP.options.params for this purpose, but I can't find any equivalent in Openlayers 3 ...
0
votes
0answers
14 views

Mouseposition on a gxp viewer

I've been trying to include mouseposition on my web application but haven't managed to do it. I've read that since opengeosuite includes openlayers I should use MousePosition.js. My problem is where ...
0
votes
1answer
64 views

Single Image WMS in Geoserver to clear duplicate labels

I have set up Geoserver with PostgreSQL/PostGIS as database. Imported a country boundary shapefile into the database and published as WMS. The data has got the Country name attribute in the "label" ...
0
votes
0answers
16 views

How to call TMS layers using openlayers

I am using geoserver 2.3.5,openlayers 2.1.3 . I am trying to use tms layer for displaying map. Initialy am getting map in openlayers, but the next zoom levels is not rendering. I tried with WMS layer ...
-1
votes
1answer
51 views

What is difference between openstreetmap and openlayers?

What is difference between openlayers & openstreetmaps ? is openlayers made on openstreetmap or vice versa ?
0
votes
1answer
26 views

How to print only a selection of the map using MapFish Printing Module?

I am working on a GIS API that uses OpenLayers 2. I want to make snapshots of a selected region. For example. I draw a rectangle, and the MapFish Printing Module would print only the selected region. ...
0
votes
1answer
41 views

Postgis geometry column with different srid

I have a table that has geometry column named the_geom. I set SRID value to 29903. And I used Openlayers api to view data on map. I set map srid as 29903 and works well. But if I need to show my data ...
0
votes
0answers
16 views

Popup Feature Information

I'm using the heron template and I have added my shapefiles on it. The feature information button doesn't display the data within my shapefile. How can I make it work properly? Below is my code: ...
0
votes
1answer
10 views

OpenLayers.Filter.Comparison value charecter encoding

I am using vector layer with WFS protocol var adressVector = new OpenLayers.Layer.Vector("Adress", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ ...
0
votes
1answer
86 views

Difference between OpenLayers 2 and OpenLayers 3? [duplicate]

Can anyone tell me the main difference between OpenLayers 2 and OpenLayers 3? In other words, what are the main features in OpenLayers 3?
0
votes
1answer
29 views

Parse WKT and zoom to polygon extent using openlayers

I'm having trouble getting Openlayers to zoom to a polygon extent using "map.zoomToExtent(vector.getDataExtent());" The object parsed as WKT loads and displays fine but I want to zoom to the polygon ...
0
votes
1answer
21 views

Drag issue on an OpenLayers map inside a jquery ui draggable div

I'm trying to put an OpenLayers map inside a draggable(); div. The issue is that when I try to drag the map, all the containers drag too. Any ideas? Example: http://jsfiddle.net/0njnady6/
1
vote
1answer
22 views

Clip & save layer using OpenLayers 2

I ma currently developing a web mapping app. How do I make it possible for my app to clip and save area of interests or area I am working on. I can create a vector layer, modify it and delete if I ...
0
votes
1answer
29 views

How to specify the lat/long and bounding box of MapServer WMS layer in Openlayers

I am using MapServer to add a WMS layer on a basemap using OpenLayers 3. The mapserver generates a png image from a shapefile, which I need to overlay on a basemap. Below is the code which I used to ...
0
votes
0answers
21 views

OpenLayers, onSelect event does not work with markers

I'm creating different Layer to draw marker : function Init(){ markers = new OpenLayers.Layer.Vector("Marker Layer"); selectControl = new OpenLayers.Control.SelectFeature(markers); ...
1
vote
2answers
30 views

In OpenLayers, how to set feature.style when using attribute-dependent symbolizers?

I am using dynamic (attribute-dependent) symbolizers on a vector layer. In this CodePen example, we have the colors of the states depeding on the PERSONS attribute, which given the number of ...
2
votes
1answer
58 views

WGS84 conversion to EPSG:3067

I'm trying to convert coordinates from WGS84 to EPSG:3067 with proj4js and Openlayers, but can't get the conversion right. When I run proj4('EPSG:3067',[-24.9993393, -60.184716]); it gives ...
3
votes
1answer
45 views

Using cubiccurve in OpenLayers 2?

I want to use cubiccurve in openlayers 2.13, And I have added the necessary files, But when drawing the line is drawn instead of the curve. Files are available on the website: ...
0
votes
0answers
27 views

Jquery attr() funciton returning “undefined” for GetCapabilities Request

On my webpage where I am displaying my maps, I want to add a link to the metadata of the selected map. I have specified the link in GeoServer in the MetaDataURL field, and should be able to retrieve ...
0
votes
1answer
16 views

Upgrading Heron to 1.0.5 to use with OpenLayers 2.13.1?

Can we use Openlayers 2.13.1 instead of openlayers 2.12 with heron 1.0.5 ? If yes, then what changes we have to make and if no then what are the possibilities of its up gradation in future. The ...
0
votes
0answers
34 views

How to access the Metadata link URL field of GeoServer using the OpenLayers Library?

Geoserver v: 2.4.4 OpenLayer v: 2.13 All maps are WMS. In my javascript I use "layer.name" to access the Title of the specific map as specified in my GeoServer layer. Using jquery I was able to ...
0
votes
0answers
24 views

Refresh Openlayers vectorLayer every 5 seconds with jQuery and Ruby

Ich want to refresh my vectorLayer in OpenLayers every 5 Seconds using a jQuery. How do I have to do this? The data for the Layer is stored in a Ruby KML. Just look at the Code. Ruby method for the ...
0
votes
2answers
43 views

OpenLayers Lat Lon Conversion

I've been trying to figure this out, but have come up with nothing. I have this code: .... var lat = 7486473; var lon = 4193332; var lonlat = new OpenLayers.LonLat(lon, lat); .... It uses floats ...
1
vote
1answer
45 views

GeoServer create map from image

Can i create a map using plain image(jpg or png) with GeoServer and OpenLayers? Scenario as i see it: I upload image(somehow) to GeoServer and it converts it to a map layer Then i create a simple ...
0
votes
1answer
30 views

Selenium Web Driver and OpenLayers 2.x: How to do an identify on a map?

I've to test a web mapping application that use OpenLayers 2.x, using Selenium Web Driver in Java and using Firefox (I'm on Windows 7). I've found only this issue ...
1
vote
0answers
22 views

Shifted point in pdf export on QGIS

When I print as PDF a work done with a shape point and OpenLayer plugin I notice that the point are shifted In the dual screen image you can see the pdf exported image (left) and the QGIS woriking ...
1
vote
1answer
42 views

GeoJSON and OSM layers with different projection

I have a GeoJSON from NaturalEarth for world state boundaries and I want to display it with only without backgroung. But also, I want to add a OSM layer as another baselayer option. The code I am ...
0
votes
0answers
41 views

How to find the area of a feature in OpenStreetMap, using overpass api and javascript

I am creating a calculator and I would like to know the area of parks/water bodies in a specific area. This would have to be dynamic. I have successfully requested all the features I need using the ...
0
votes
1answer
62 views

how can I join excel sheet with point shape file?

How can I join an excel sheet with shapefile (Point) and common field is station code. In excel one station code has multiple rows and I want to attach those values with shapefile.
1
vote
1answer
33 views

Rectangle Appears Distorted on Map

When displaying two features, a polygon a (see geoJSON) and its minimum bounding rectangle b (see geoJSON), I get the following result when viewing on geojson.io: The minimum bounding rectangle ...
1
vote
0answers
25 views

Adding Layers to Heron Template

I've got this piece of code below that is supposed to display two base layers but now the OSM_LAYER disables(becomes blurry and inactive in the layer tree) the WORLD_LAYER, I'm not sure what the ...
1
vote
1answer
16 views

Heron template toolbar problem

A couple of days ago, I went to this site heron-mc.org/examples.html and found some useful application templates. I viewed them, went to view source code and copied the source code to my editor to ...
0
votes
0answers
30 views

how to show coordinate on a geoexplorer map by moving the mouse?

I am new in developing a GIS webpage. I am using opengeo suit 4.6 at my work and I want to show the coordinate on the geoexplorer map. I know that openlayer use a code for showing the coordinate of ...
1
vote
1answer
45 views

openlayers 2 coloring a polygon layer based on a database ( postgresql ) table that is different from the attribute table of the layer

i have trouble coloring the polygons in my layer based on the values in certain field in another table in my postgresql database that is different from the attribute table of the layer itself , is ...
1
vote
1answer
14 views

Zoom To Layer Using EventListener

I have been struggling with zoom to layer functionality with event listeners. The code is working and zoom to layer whenever it is loaded but the problem is that once it is loaded, i can not zoom or ...