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

learn more… | top users | synonyms

1
vote
1answer
587 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 ...
0
votes
1answer
138 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
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
975 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 ...
1
vote
2answers
91 views

QGIS OpenLayers Google Maps not zooming

Google Satellite will not zoom. Although the scale changes as I zoom, as the map is re-rendered, it zooms out to its maximum extent every time. This first happened in the latter part of November ...
0
votes
1answer
881 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 ...
2
votes
3answers
969 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
1answer
208 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 ...
1
vote
2answers
985 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 ...
3
votes
1answer
93 views

OpenLayers Full Screen control not working

I have a problem with openlayers controls. I have 2 controls which are perfectly working, var mousePositionControl = new ol.control.MousePosition({ coordinateFormat: ...
1
vote
0answers
11 views

How to sync html list with markers layer in openlayers?

I have a osm map and with openlayers i can mark a place on it and also have popup for markers, the problem is if i show all markers in map and i have a list, how to show each marker popup by clicking ...
2
votes
1answer
413 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: ...
0
votes
0answers
33 views

how to use pre generated Tiles?

I'm using mapserver and openlayers for my gis server. I have a sqlite database that contain cached tiles and i want to use this cached tiles as base layer. databse structure : Tiles id ...
1
vote
1answer
191 views

How to use OpenLayers Geolocate with the OpenGeo Suite Client SDK?

I’d like to have GPS functionality added to my OpenGeo Suite Client SDK application. From what I understand it should be possible to use the Geolocate control from OpenLayers. Preferably there ...
1
vote
1answer
340 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 ...
2
votes
0answers
11 views

Migrate FixedZoomLevels Layer OpenLayers 2.13.1 into OpenLayers 3

I have a following problem. I am not able to migrate existing custom Layer written for OL 2.13.1 into OL 3. I do not know how to reimplement the FixedZoomLevels properties. OL2 code: ...
0
votes
1answer
408 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 ...
1
vote
1answer
286 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 ...
2
votes
1answer
196 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 ...
2
votes
1answer
566 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 ...
0
votes
1answer
1k views

Having trouble selecting polygon from existing layer (using OpenLayers.Control.SelectFeature)

I am hoping someone can point me in the right direction. I am not a programmer, so that is my first roadblock. ha The problem: I have an existing polygon layer and I am trying to select one of the ...
0
votes
0answers
14 views

How to popup featureinfo by selection

I would like to select an area of the screen using GetFeature and then display a popup (getting all feature info from multiple layers) of all the features in the selected area. Here is what I have so ...
0
votes
0answers
48 views
+50

Error with GeoExt.data.WMSCapabilitiesStore + gx_wmslegend

When I use this code (code in bold means for comparison between codes): // create a new WMS capabilities store store = new GeoExt.data.WMSCapabilitiesStore({ url: ...
3
votes
0answers
41 views

Is OpenLayers appropriate for creating maps of a fantasy world?

Please excuse my ignorance, I've been directed here from Stack Overflow where I've been looking at a variety of HTML5/JQuery packages to create a map of a fantasy world that exists in a game I ...
-1
votes
1answer
25 views

How to remove WMS layer from OpenLayers

How to remove added WMS layer from OpenLayers ? I have seen a link here.But I did n't get clearly. Please help? I have added the WMS layer as follow <script ...
0
votes
1answer
162 views

WMS BBOX in URL vs in params

I'm new to OpenLayers and Geoserver and I have a problem (of course :P). I must retrieve a layer from Geoserver's WMS service, and I want to construct the URL to request it. If i try to make this: ...
4
votes
3answers
4k views

How do I determine the center point of several features in OpenLayers?

I have several polygons being drawn on a map, usually representing a country or province or state. Depending on some chosen data, different regions may be selected, so what I was hoping is that ...
10
votes
4answers
21k views

How to add a simple WFS layer from GeoServer to OpenLayers map?

I'm trying to add one of the included datasets with GeoServer to an OpenLayers map. I've followed the OpenGeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a ...
2
votes
2answers
905 views

Openlayers Vector Layer Polygons not displaying properly with OSM

I have an Openlayers map displaying Acetate tiles in OSM, and I'm drawing polygon regions on a vector layer to represent the countries of the world. This works fine for the most part, however, there ...
1
vote
0answers
12 views

JSON coordinates not showing on Open Layers 3

i hope you guys could help me. its been several days since it tried and failed on populating my markers using a json Method. Please point out where im making a mistake. Thanks. Below is my code: ...
1
vote
1answer
125 views

Is there any readily available implementation of Mapserver (or Geoserver)- Postgres-Openlayers combination?

I am developing an web GIS for map data presentation for public. Is there any readily available implementation of Mapserver (or Geoserver)- Postgres-Openlayers combination or similar? More Details: ...
1
vote
0answers
12 views

How to display output of a chained process in OpenLayers?

Is there a way I can display the inputs of a WPS process when one of the inputs is output of a chained configured process ? Maybe the snippet below will explain what I am trying to do ...
3
votes
2answers
606 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 ...
3
votes
1answer
803 views

Limit Zoom on WMTS Layer using Openlayers 2.12

I'm implementing a baselayer to be used by a Plone addon (collective.geo.openlayers). My implementation specifically creates a layer and returns it to the addon, which enables many different layers to ...
1
vote
1answer
105 views

Populate geoext2 gridpanel from openlayer vector features

I need to populate a extjs datagrid with a openlayers features. The official example http://geoext.github.io/geoext2/examples/grid/feature-grid.html doesn't help me, beacuse the data is loaded from a ...
0
votes
1answer
257 views

Overlay wms + google layer in Openlayers

I want to use OpenLayers, GeoServer layer with the google maps api as a base. In my GeoServer layer is redesigned to EPSG: 900913 when I open the geoserver openlayers with everything ok. On a map ...
0
votes
1answer
305 views

Openlayers 2.12 - add selectFeature to button results in “Geometry Undefined”

I have modified the Openlayers mobile Vienna WMS example, and am trying to change the labelButton to allow selecting of features to open a popup. I think it is necessary to do this as on a touch ...
0
votes
3answers
239 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 ...
0
votes
1answer
114 views

How to select point feature rendered by picture

I use GeoServer as my gis service and render some points with pictures, SLD code like this: <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource ...
0
votes
2answers
40 views

WMS layer is distorted

My WMS layer(EPSG:3847) looks fine in GeoServer However, it is distorted in browser: I found someone hade the same problem(Openlayers and Geoserver: OSM/Google Maps and WMS Overlay)but I still ...
0
votes
0answers
20 views

Google Maps zoom number and min/max scale(Openlayers)

How to set Google maps' zoom number accordingn to min/max scale of a wms layer? If min scale is 1/50000 and max scale is 1/5000 (units: m), which zoom number is resonable? I tried to set min zoom ...
0
votes
0answers
11 views

Call style function when zoom the map?

First I am attaching my code snippet. var selectControl = new ol.interaction.Select({ condition: ol.events.condition.click, //not stable as per documentation layers: ...
-1
votes
0answers
22 views

why am i not able to do WPS chaining? [closed]

i am trying to write a code in javascript using openlayers (2.13.1) to chain the wps processes on click, but not able to chain the processes . the Error is : Uncaught TypeError: Cannot read ...
0
votes
0answers
10 views

OpenLayers - Converting loadURL to Request.GET

I am using the sample code that comes with GeoServer to generate a layer for openLayers 2. However the latest version of openLayers 2 no longer supports loadURL. I am trying to convert the sample ...
1
vote
1answer
19 views

I can't get my OpenLayers radar overlay to display correctly

I've tried to overlay a radar image on my map so that I can show the current radar for the United states. However, whenever I load the map, I can't seem to get the projection to look correct. Here's ...
0
votes
0answers
13 views

RegularShape undefined in openlayers 3?

I want to rotate my polygon feature 90 deg so from documentation I have found ol.style.RegularShape to rotate like this but gives undefined error on that line. After debugging the code it is clear to ...
2
votes
2answers
712 views

Openlayers - Get Type of Layer

Is there a way to get the type of all the layers in an OpenLayer maps object? What I am trying to do is iterate over all the layers in my OpenLayers map object and populate a dropdown list with the ...
2
votes
3answers
361 views

Best Approach to display charts on a web map?

I have a very basic understanding of GIS through some basic work with openlayers in Drupal CMS. I am trying to understand what is the best approach to display a chart on a map (like the one below)? I ...
1
vote
0answers
17 views

Small discrepancy in scale reported by OpenLayers and GeoServer (after DPI fix)

I'm implementing some scale-dependent functionality in an application that uses OpenLayers 2.12 on the client and GeoServer 2.6.1 on the server. The legend is created in JavaScript and when a ...
2
votes
1answer
574 views

Why does Mapserver (ms4w) not generate tmp images?

I am having trouble with my web-based application, where my tmp images are not being stored for later retrieval. The images are generated each time they have to be loaded, so zooming out and then back ...