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

learn more… | top users | synonyms

0
votes
1answer
8 views

Using OpenLayers and OpenStreetMaps to display statistical information with colors : possible?

I'm planning to build a statistical tool using OpenLayers and OpenStreetMaps. This tool will have to display statistical data for french departments with colors. What I would like to do is the same as ...
0
votes
0answers
7 views

Openlayers Issue with Track Start Points

I read a KML with tracks to my map and want to generate start and end points on the fly. I try to iterate over features and fill a marker array. I started with the Start Points only and than wanted to ...
3
votes
3answers
2k views

Openlayers remove previously drawn polygon on starting to draw next one

Objective: At any point of time there SHOULD only be zero/one polygon(s) on a vector layer with a polygon control. I need the previous polygon to be removed as soon as user starts drawing the first ...
1
vote
2answers
84 views

How to specify layer from which layer to query getWMSInfo when click feature on map (getWMSInfo with multiple layers)

i'm using getWMSFeatureInfo with multiple point layers. When i click on a point on map, how to specify point clicked belong to which layer??
0
votes
1answer
23 views

get and change style property openlayers

i need to change the property of some style after its created, and i need to change it with knowing only the string of the property name. i am getting string like "fillColor" and value like "blue", ...
0
votes
1answer
188 views

google geocoding service combined with openlayers - not working

I'm trying to combine google's geocoding service with openlayers. So when a user types an address and hits enter, map zooms there and renders a simple point. I edited my code according to the previous ...
0
votes
1answer
23 views

Why are map tiles being repeated? Using MapServer and Openlayers

Problem I have: map tiles from my layer are being repeated. Shapefile is projection 3059. I have specified 3059 is in the mapfile and also when creating map object. I know OpenLayers.Layer.WMS is ...
0
votes
3answers
123 views

OpenLayers - Introduction tutorial problem

I have just started looking into OpenLayers and I can't seem to even get the example provided to work, I just get a blank screen. Am I missing something really obvious? Here's the html I am trying to ...
1
vote
2answers
39 views

Find closest feature

How can I find the closest feature(coordinates) in a json file from a set lat lon using openlayers. Currently, I get the centroid point(lat,lon) from the selected polygon feature ok, but I Would also ...
0
votes
0answers
23 views

Openlayers doesn't want to show map throught Mapserver

I have a configured Mapserver with WMS service, I know Its working because I tried in QGIS and I can see the map. The problem is that openlayers doesnt want to show the map via mapserver service. Yes, ...
0
votes
0answers
8 views

Problem with adding placemark from kml file with specific id

I have a problem with adding a vector layer from kml file. I am trying to make XMLHttpRequest and add only a placemark with specific id. Nothing is displaying on the map. Request is successful and ...
0
votes
1answer
36 views

GeoExplorer: Setting more/custom zoom levels

I have BoundlessGeo's OpenGeo Suite (Geoserver,PostGIS,GeoWebCache,GeoExplorer) installed, and love the web functionality of GeoExplorer, but need my maps to zoom in a few steps further. So far the ...
1
vote
1answer
13 views

Openlayers active select control on layer prevents drag and zoom

I've build this web-map http://gimoya.bplaced.net/Openlayers/Trails/map.html with bike-trails (retrieved from a KML on my webserver), where several trails from a region are covered by a selectable ...
0
votes
0answers
10 views

Openlayers WFS change featureType

I am trying to change wfs featuretype "on the fly" in openlayers. (This method http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html#OpenLayers.Protocol.WFS.v1.setFeatureType) This ...
0
votes
0answers
15 views

How to cache write Google Maps in OpenLayers?

How can I cache write Google Maps in OpenLayers? Cache writing function of OpenLayers works with other maps but I have difficulty implementing it with Google Maps?
0
votes
0answers
13 views

GeoExt2 projection problem with OSM and googlemaps

First of all, I already see the topic in Difficulty to display WMS and Googlemaps layers using Geoext and ext but I'm still not able to find an answer. I'm using the example in ...
0
votes
0answers
12 views

CQl Filter Don't work with WFS layer in Open Layers

I used a WFS layer from geoserver in open Layers it's shown on MAP but when I want to use a filter it doesn't work I don't know where the error this is the code : <script ...
0
votes
1answer
179 views

Display photo in GeoExt popup

I have point feature with name PointPhoto. This feature have attribute: id area PhotoPath Now I am using GeoExt popup to display this attributes, but I cant find a way to display image from ...
0
votes
1answer
15 views

Is there a widget/service to put a marker and send data?

I need to ask people where they want to go in the city, and as a response I need either geocoded location, or a marker on a map. Although everyone knows his home address, not everyone knows the ...
1
vote
3answers
338 views

Load information about a feature

I must mention first of all that I am very new to this area... I am developing a GIS application. I created a simple map using geoserver with openlayers, it is all working through apache tomcat - and ...
0
votes
3answers
345 views

OpenLayers + GeoJSON from a django server does not display features

I'm having trouble with the vector layer for my little project, here's the snippet of the javascript block var map; function init(){ map = new OpenLayers.Map('map', { ...
1
vote
1answer
76 views

How do you update the maxFeatures setting of a WFS layer in OpenLayers

I have a WFS layer which a protocol in the definition. The protocol states that the maxFeatures returned should be 1 to avoid downloading a large amount of data. I can update the value for ...
0
votes
0answers
20 views

about updating WFS with popup

I want to ask you something about this How to collect data via WFS and Popup I started to build my own WebGis using openlayers and geoserver, but I'm newbie here I want to add form to update the ...
1
vote
1answer
77 views

why distanceTo gives different results?

i am trying to get distance between two polygons and somehow i get different distance, depending on how I call distanceTo a.distanceTo(b) != b.distanceTo(a) should it be like that? ...
0
votes
1answer
88 views

Error in displaying wfs layer from mapserver/postgis

I have read and tested all the relative posts but I still don't have a solution for my problem. I have a layer suscribers (points) stored in postgis database with srid=32232. I would like to display ...
2
votes
1answer
383 views

How to add logical operators in wfs openlayers

How i can add logical operators AND, OR both togehter in WFS openlayers. <script type="text/javascript"> var map; function init() { var bounds = new OpenLayers.Bounds( ...
0
votes
1answer
75 views

How to better visualize features of clusters in Openlayers

I am using the cluster strategy for mapping a large number of features in Openlayers, now I would like to find a good solution for providing info about the features contained in a cluster selected by ...
0
votes
0answers
21 views

Speed-up the GIS dynamic web application

I don't know if this is the right forum to ask this particular question but I would definitely appreciate any support or clue in this regard. I am have made a dynamic web-GIS application on Eclipse ...
0
votes
1answer
110 views

OpenLayers: show polygon of images in mobile

I'm using Phonegap 2.6 and OpenLayers 2.12 for my mobile application. Feature: in a panel (jQuery Mobile), I'm clicking in a checkbox and georeferenced images are displayed in the map that is ...
0
votes
1answer
130 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 ...
2
votes
1answer
368 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
1answer
171 views

Openlayers FramedCloud popup appears in the wrong location

I have an application that is using OpenLayers 2.13.1. It is utilizing a bing basemap and overlaying WMS layers. I am using a FramedCloud popup. I would like the popup to appear where the user clicked ...
0
votes
1answer
30 views

how to display the coordinates of a openlayers map with a jquery in my asp.net textbox?

this is my initmap.js OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { }, initialize: function (options) { this.handlerOptions = ...
0
votes
2answers
97 views

Build Openlayers 3 on Windows

On GitHub is a wonderful installation instructions, but most users GitHub, use Linux, it's not worked on Windows.... https://github.com/openlayers/ol3/wiki/Developer-Guide How can I build OpenLayers ...
3
votes
1answer
554 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
2answers
222 views

Creating a Clickable Map with OpenLayers?

My girlfriend is trying to create a webmap using OpenLayers that is similar to this one, which was done in ArcGIS Server. I thought I'd be able to help her as I have GIS and some coding experience but ...
0
votes
1answer
69 views

Override or add to [GeoExt.ux PrintPreview] rotation

I'm using suite-sdk (GXP) to build my WMS client. I want add to PrintPreview window capability of changing rotation. I find this feature in Heron script but there is other version of [GeoExt.ux ...
0
votes
2answers
225 views

OpenLayers: Strange Tiling Issue (Checkered, white and grey) when panning around map

So this strange tiling issue is only occuring when moving around the map. Some things to note: 1) You can see the markers, airplane icon, and flight paths. These are all overlays, where the actual ...
0
votes
1answer
19 views

WPS Client implementation in our desktop

how to implement wps client in our system and also specify requirements needed. How to specify the proxy to the OpenLayers.ProxyHost = 'proxy.cgi?url='; var map, client, intersect, buffer; function ...
1
vote
1answer
22 views

Optimize openlayers / Geoserver 2.5 with GeoWebCache - reprojection necessary?

I have an openlayers map setup with several base layer options (some served by my own GeoServer) and many optional layers served by my own GeoServer. I've selected Google's EPSG:900913 as the map's ...
0
votes
1answer
267 views

Use new OpenLayers.Filter.Logical from OpenLayers into jQuery

I've a small GIS app, displaying stations on a map. Very simple. At start, none of the stations are displayed, even if its layer is enabled. What I want, when I click on a div, is to display one the ...
2
votes
1answer
37 views

geoserver/openlayers: multiple layer geotiff

I have a geotiff file with multiple layers (46 layers), each layer corresponding to a different date (the geotiff layers corresponding to sea surface temperature, 1 layer per year). I imported this ...
0
votes
2answers
30 views

How to get feature from PostGIS to OpenLayers with ASP.NET?

I need to show my feature from this table in PostGIS in my ASP.NET web page web. Has anyone done that?
1
vote
0answers
385 views

How to add legend in WFS openlayers

How can I publish WFS openlayer with legend, have tried different examples such as http://api.geoext.org/1.0/examples/vector-legend.js. But when I tried using this firebug shows an error=> ...
0
votes
0answers
15 views

Preload tiles in OpenLayers 2 and add them to the map

I have an XYZ layer on an OpenLayers 2 map. Now I've written a function to preload all tiles of map.getExtent().scale(2). That works, but when I pan the map, the tiles still appear after a small time ...
2
votes
1answer
897 views

GeoServer GetCapabilities Not Working

I am trying to learn how to use the OpenGeo suite by following the tutorials on the site. The one I'm currently trying to follow is http://workshops.opengeo.org/geoext/stores/capabilities.html. Most ...
1
vote
1answer
79 views

OpenLayers pan to CQL filter result

I'm new to OpenLayers and looking for some help. I would like to filter my shapefile with CQL and display the result. (that's actually working :-) The Problem is that I don't know how to pan the map ...
0
votes
0answers
31 views

WmsGetFeatureInfo not working in larger scales

I use Openlayers/Geoserver on ubuntu server. Geoserver runs at tomcat6. I have grouplayer of several layers all shown at certain scales. When I click at feature at small scale, getfeatureinfo works. ...
2
votes
1answer
459 views

Problem with WFS-T save strategy in Openlayers

In my web map application, I have added the editable wfs vector layer for feature editing. But in save strategy method, Insert and Update Geometry is working fine.But Update Attributes is not saved in ...
2
votes
2answers
217 views

Using OpenLayers how can I Extract some information relative to the whole KML file?

I am creating a KML layer like this: new OpenLayers.Layer.Vector("KML", { projection: myDisplayProjection, strategies: [new OpenLayers.Strategy.Fixed()], ...