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

learn more… | top users | synonyms

3
votes
2answers
407 views

OpenLayers - SelectFeature fails on a small polygon on top of a larger polygon

I'm using new OpenLayers.Control.DrawFeature to draw polygons and OpenLayers.Control.SelectFeature to select a specific polygon. I'm drawing one polgon and then a smaller polygon on top of the first ...
1
vote
2answers
142 views

OpenLayers label without using StyleMap

I need to show label of each feature based on attribute field value. I know that I can use ${attribute} notation for this purpose. But this approach works only if I make StyleMap and pass it to vector ...
0
votes
2answers
2k views

Geoserver Access-Control-Allow-Origin

I have web client on Apache and WFS service on Geoserver, both on same computer! Web client is (Apache) running on port 89, and Geoserver is running on 8181 port! I do following settings in Apache ...
0
votes
1answer
6 views

Multiple Layers Boundless Suite-SDK ol3view

I am currently building a simple web application with the Boundless OpenGeoSuite SDK ol3view (Openlayer3 viewer) and I was able to get one layer to show up from my geoserver instance but I would like ...
4
votes
2answers
244 views
+50

Misplaced Google Maps with OpenLayers plugin in QGIS?

I was using Google Maps with OpenLayers plugin in QGIS with my vector layer with projection EPSG:4326 with google map projection EPSG:3857 and "on the fly" transformation enabled. It was matching ...
0
votes
1answer
91 views

request two layers in search action of one PanelForm

here's my case: i have a panelForm with 4 fields, and a search button, that search for the features that correspond to the 4 fields given by the user. and i have two layers that both contains the 4 ...
0
votes
0answers
39 views

OpenLayers and GeoJSON

there! Recently I started learning Openlayers 2x and I've been struggling for a while now with a GeoJSON and it's projections. So, here is the deal; I successfully added wms layers from ( ...
0
votes
0answers
10 views

Saving Map on Server Side as Image File

I am trying to save my openlayers map on the server, following these instructions, the sections Client-side: Tile collection and Server side: PHP: ...
0
votes
0answers
23 views

Apply css styles to layers in openlayers3

define layers and styles using openlayers3 API. i need 2 apply css styles for layers.for that code is in below used //applying styles for wms layer var fill = new ol.style.Fill({color: 'rgba(237, ...
1
vote
1answer
538 views

How to disable all mouse event in openlayers' map div?

version: OpenLayers-2.13.1 brower : IE8 (I Hit it!!! But I need to work on it) I create a div with id 'map' to display openlayer map. Sometimes, I need disable map div catch any mouse events, let me ...
2
votes
2answers
51 views

Get single layer in OpenLayers 3

I am doing an upgrade from OpenLayers 2 to Openlayers 3 and it seems to me that in OL3 there is no direct way to get a layer from map by its id. In OL2 it was like: map.getLayer(id) If we look in ...
0
votes
0answers
14 views

OpenLayers 3 - Monitor layer loading progress

I'm doing an upgrade from OpenLayers 2 to OpenLayers 3. In OL2, I was monitoring the loading progress of layers with their loadstart and loadend events. With grid layers I was even able to show a ...
0
votes
0answers
9 views

Openlayers - zoom specify a sub section of displayed map to zoom on

I have working solution with openlayers 2 ... moving assets are show on the screen, as soon as they go off the screen, the map pans so the asset is visible on screen (on map) However, on the left ...
2
votes
1answer
406 views

OpenLayers and custom Proj4 Projection

ok so I'm a newbee in using OpenLayers. I try to map some planetary data on my webMap server using OpenLayers. I defined a proj4 projection as follow: Proj4js.defs["MYDATUM"] = "+proj=longlat ...
0
votes
0answers
4 views

OpenLayers.Layer.ArcGIS93Rest in Firefox (openlayers 2)

There appears to be an error when using OpenLayers.Layer.ArcGIS93Rest in firefox (works fine in chrome) where the request is aborted. No explanation of why. If I plug the token directly into the url, ...
0
votes
1answer
136 views

WMS - Export Retrieved XML Data

I use WMS layer in my app and could successfully retrieved Feature Info by click like so: http://openlayers.org/dev/examples/getfeatureinfo-control.html My question is: Is there any way to export the ...
0
votes
0answers
14 views

Openlayers GetFeatureInfo not working all zoom levels

I am sending GetFeatureInfo request to wms service. My parameter is like this. When I click to map, map click event is firing and I am sending this request to server. var params = { ...
2
votes
2answers
3k views

Openlayers & WMS - GetFeatureInfo problem

I'm making a small project but I encounter some problems. Let me explain that : Having generated mapfile with mapserver and they are viewable by the openlayers interface, I would like to make me ...
0
votes
1answer
22 views

OpenLayers/jQuery without CDN?

I was wondering what are the necessary files for hosting a webgis server with OpenLayers3 without using a CDN? I am testing on a localhost without internet access. It doesn't work to merely copy ...
1
vote
1answer
414 views

Problem creating a popup in mobile openlayer

I'm trying to use the mobile version of openlayer, unfortunately I could not use framedcloud in it, I could only create a square popup does not look very aesthetic, besides the main need is to ...
0
votes
1answer
942 views

OpenLayers create marker (feature with icon) from WKT

I have a point object WKT. Like this: POINT (25.04568 48.221548). Also I have an icon in my project folder. My goal is to show on a map an icon that represents a feature. Can it be just a normal ...
0
votes
0answers
23 views

shape file is not getting added on open layers web mapping application

I am trying to add a shape file which is already on IIS SERVER.it is returning the error code 0x805e0006. When I am trying to open this shape file url in browser it is not getting downloaded also.From ...
0
votes
1answer
849 views

Marker layer not responding to events in OpenLayers

I have multiple layers in OpenLayers: three vector layers, one google map layer, and a marker layer. I registered feature selected event to all three vector layers (which works fine, but btw is that a ...
0
votes
2answers
146 views

How to set default style of layer using rest api in Geoserver

Hello friend, I want to change the default style of the layer in Geo server using the REST API.For this i get this code curl -v -u admin:geoserver -XPUT -H "Content-type: text/xml" -d ...
1
vote
2answers
285 views

Dynamically Reload OpenLayers Marker Layer based on user input

Not really sure how to ask this, so I'll outline the scenario. We have a database with locations in it. There are various types of cars at each location and each car has a problem of varying ...
1
vote
1answer
23 views

How to get list of all markers from selected Polygon using OpenLayer MAP v2

I am able to run following features on OpenLayers Map Version 2.x Put Markers on Map Draw Polygon on Map Select Polygon on Map Now my requirement is when i select any polygon then i would like to ...
1
vote
1answer
118 views

Mapserver WMS, features clipped and positioned

How can I prevent features being clipped at tile boundaries in an WMS layer as per the picture The arrow and line segments are being clipped when viewed in openlayers as a WMS layer. The map file ...
0
votes
1answer
128 views

Add features to vector layer from WFS protocol read response

Im trying to add the features i get from a WFS query using the WFS protocol. But something doesnt work. I have looked at other post with people having similar problems, but their solution dont fit ...
2
votes
1answer
523 views

How to dynamically measure and display radius of circle in OpenLayers?

I want to give my user the ability to click on the map and give him a dynamic circle drawing tool which also reads out the radius measurement. That way the user can see how big the circle he creates ...
1
vote
1answer
132 views

How to set the length of a line using openlayers

I'm trying edit a polygon by changing the length of some lines by code. Found this method to calculate based on the bearing. But I didn't find anything on how to calculate the bearing, before I start ...
0
votes
1answer
189 views

How to Represent large data using google map api in javascript

1) I am trying to represent data using bins as the data was too large to display each and every point simultaneously. but the problem with this also existing if the no of bins are getting larger ...
0
votes
2answers
226 views

javascript function to search all OpenLayers vector features covering a pixel

I have an OpenLayers map that draws features in a vector layer. The features are selectable and have a popup on select. Unfortunately in a lot of cases the features overlap so it can be impossible to ...
2
votes
1answer
40 views

Correct syntax for retrieving features from GML format in OpenLayers

Yesterday I made with qgis the shapefiles of my town and now I wanted to add them in a web application I'm making with OpenLayers. The problem is that, while it loads them perfectly with the wms ...
2
votes
1answer
183 views

Openlayers map WMS stretched by latitude

I am working on a small javascript application for displaying map with WMS layers from 2 servers. The problem is, that image is stretched by latitude, it is wider, as it should be. This is is how it ...
1
vote
2answers
946 views

How to get Native Bounding Box minx,miny,maxx,maxy using openlayers?

I am trying to develop GIS application using GEO SERVER and OPEN LAYERS i want to get bounds from geo server Native Bounding Box data of a layer instead of manually hard code var map; var key ...
2
votes
1answer
115 views

CQL filter causing slowness in Java \ Geoserver app

I have a Java application that includes an OpenLayers map with WMS tiles pulled from Geoserver. Geoserver and the Java app are looking at the same MySQL database. In the Java application I have a ...
0
votes
0answers
12 views

GeoServer 2.6 + PostgreSQL 9.3.5, GeoServer becoming unresponsive

We're displaying point vector data on a web client using an OpenLayers (2.12) WMS layer... rendered via a GeoServer SQL View reading from data in PostgreSQL. The particular layer has a viewParam on ...
0
votes
1answer
54 views

Apply an sld to a vector layer in OpenLayers

I'm trying to apply an sld style to a vector layer in Openlayers. I already took a look on google and here and I got a lot of informations, but still I don't manage to achieve the result I'm looking ...
1
vote
2answers
130 views

In OpenLayers 3, how do I draw an extent as a LinearRect?

In OpenLayers 2, this was an easy feat. I was able to simply instantiate a LinearRect given the coordinates of my BoundingBox, and then add the LinearRect as a feature to a vector layer I had added to ...
1
vote
1answer
273 views

SQL Data: How to draw circles with a radius based on lat/long data in DB

I have a . sqlite file with many columns, two of those columns being lat and long. I've been searching around for a bit now (don't think I want to be using BuildCircleMbr from spatialite?) but I'm ...
1
vote
0answers
19 views

draw isoline from points

Is any spatial utility or methods are available for creating contour or isopleths on Oracle spatial? I want to create contour from point geometry show it on map (using mapserver) to site. Pleas share ...
3
votes
2answers
560 views

Offline Phonegap/Openlayers App

I have a mobile app that uses Phonegap with OpenLayers and Geoserver. Now, I need to make the app available completely offline. The amount of data points can get very large depending on what client is ...
2
votes
3answers
953 views

OpenLayers.Format.GeoJSON throws an exception “SyntaxError: JSON.parse: unexpected character” for valid JSON

In my GeoExt client, I have the following line that retrieves JSON data from a web service into a FeatureStore: var store = new GeoExt.data.FeatureStore({ layer: route_layer, fields: ...
0
votes
0answers
21 views

Openlayers 2 - and google maps for work

We have a website that is not publicly facing and people have to pay to use it According to google, this means we have to pay their 10,000USD per year licence fee However, does anyone know if the ...
0
votes
0answers
22 views

use geoserver as source of vector layer in ol3

I am using postGis and geoserver and Openlayers3 (OL3), I connected postgis table to geoserver and published my layer. I am using following code to get the layer as vector layer: var vector = new ...
0
votes
0answers
27 views

Longitude and Latitude Mixed Up on Map

I am trying to map a WFS layer with data originally coming from a PostGIS table, and using a OpenLayers 3. At some point in this process, I believe the longitude and latitude coordinates are getting ...
2
votes
1answer
411 views

combine two OCG filters in Openlayers : ERROR: invalid input syntax for integer

i need to combine two OCG filters. each one works fine separably but if i combine them using Filter.Logical.OR, the first one works only. var c_filter = new OpenLayers.Filter.Logical({ type: ...
1
vote
1answer
329 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
0
votes
1answer
324 views

Openlayer 3 interaction Select Problem

i have a problem as a short and clear. When i use the snipped code var select = new ol.interaction.Select({ condition: ol.events.condition.mouseMove }); base map's mouse click drag is ...
0
votes
1answer
220 views

WMSGetFeatureInfo Not Returning Results

I am having a problem getting the results back from a WMSGetFeatureInfo call to my GeoServer. Using OpenLayers 2.12, GeoServer 2.4.0, Windows Server2008, and Microsoft IIS 7.5 with Application Request ...