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

learn more… | top users | synonyms

1
vote
1answer
4 views

URL for my Protocol.HTTP never called by OpenLayers?

I have an OpenStreetMap (OSM) map with a vector layer fetching data from a Node.js server setup on my local machine on port 9000. The data is in GeoJSON format. Here is the whole code: var ...
2
votes
1answer
88 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
13 views

edit openlayers feature attribute and save in geoserver

I have a layer in geoserver and I want to get this layer with WMS in OpenLayers. population = new OpenLayers.Layer.WMS("population", "http://localhost:8080/geoserver/world/wms", {'layers': ...
0
votes
1answer
84 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 ...
2
votes
1answer
312 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
11 views

OpenLayers feature styling change by the baselayer

How can I have the style of the features on a vector layer depending on the OpenLayers' "base layer"? For example, some base layers are dark images and I need (for the contrast) the features to be ...
1
vote
1answer
19 views

Determine size of screen/map to limit number of markers displayed

I am writing a JQuery Openlayers javascript web application that connects to a API, which exposes a million geo located points plus metrics and information about the points. One metric is a points ...
2
votes
1answer
24 views

Problem saving added point to GeoServer WFS-T via OpenLayers?

I want to add a point and then with WFS-T, save this to db. I work with Openlayers and GeoServer. saveStrategy = new OpenLayers.Strategy.Save(); wfs = new OpenLayers.Layer.Vector( "WFS Vectore", { ...
3
votes
1answer
26 views

Openlayers popup not closing

This is a special case, I have many popups attached to objects and they work fine and I am having a problem in only one case. All layers and popups are handled by select control's onFeatureSelect, ...
1
vote
0answers
7 views

custom SVG label style - openlayers

My goal is to display rotated labels for roads on my openlayers based webmap. The problem is actually solved (with a custom SVG solution), but i have some problems with the styling of the labels. As ...
1
vote
1answer
199 views

Mapnik not generating tiles for tilecatche

imported data by using Osm2pgsql, to get rid off all problems related to data conversion, i stored this as latlong (-l parameter).I created stylesheet, and i tested with python script and it was ...
6
votes
1answer
337 views

How To Do OpenLayers.Mobile Popup

It seems that the OpenLayers.mobile.js library (v 2.12) doesn't have a popup class. Does anyone know how to do a popup with the mobile version? I'm using some code that i ported over form normal OL ...
2
votes
1answer
33 views

Adding multiple WMS layers in OpenLayers

I have an array of layers that I am passing to map.addLayers(). When I pass the array to the function in $(document).ready(function (){}), it doesn't add them to the map (i.e. map.layers does not have ...
0
votes
1answer
65 views

WMS GetfearureInfo popup not getting

I am new to openlayers, used this link to get feature information of WMS layer of geoserver. If I clicked on any feature its continuously loading not displaying any popup. Can any one please help me ...
2
votes
0answers
24 views

Adding feature to GeoServer vector layer using WFS-T in absence of fid index?

I want to add a feature to GeoServer vector layer with WFS-T. When I use saveStrategy.save(), an error returned that said: java.io.IOException: current fid index is null, next must be called ...
2
votes
1answer
27 views

How to get public access to edit a layer in geoserver [on hold]

I want to develop a GIS system with OpenLayers and GeoServer which is installed with OpenGeo Suite 4.1 and I need to edit a layer with no GeoServer authentication. This means that guest members should ...
2
votes
1answer
20 views

Image Layers is showing on map using OpenLayers but how can I change it as base layer

I have created one code to display an image layer on my map using open layer, I am using following code tiled = new OpenLayers.Layer.WMS( "layername", ...
2
votes
2answers
381 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
1answer
245 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
25 views

UTFGrid and custom tiles in OpenLayers

This is my first post here so I apologize in advance if a convention is escaping me in the question format. I am trying to display information from utfgrid in OpenLayers. I am using custom tiles in a ...
1
vote
0answers
16 views

Create vector layer from feature collection in OpenLayers

I have used a WPS process gs:UnionFeatureCollection to compute the geographical union of two collections of WFS vector features. The process returns a collection of features which I intend to display ...
1
vote
0answers
10 views

Openlayers pop-up FeatureSelected doesn't invoke even FeatureClicked works well

My code snippet is: //Vector Layer with listeners: var vectorLayer = new OpenLayers.Layer.Vector("Kuzzular"); vectorLayer.events.on({ 'featureselected': function(evt) { var ...
1
vote
0answers
10 views

Geolocation Ptojection Transform is not working for custom coordinate system

I am using Openlayers API and I have a custom projection and I defined it to my geoserver named "EPSG:51100". I have a custom tile map. var tms2013 = new OpenLayers.Layer.TMS("2013", ...
2
votes
0answers
19 views

How can I use WFS-T in openlayers?

How can I use WFS-T in openlayers? My server is geoserver and I want to edit a feature.
1
vote
2answers
150 views

Printing possible for openlayers GeoJson WFS with Mapfish printing service and wkhtmltopdf?

I searched lots of places but I couldn't find proper examples or documentation to do printing using Mapfish Printing service or Wkhtmltopdf. My application has a few WFS layers from openlayers and ...
2
votes
0answers
14 views

OpenLayers Popup relative to a feature's position - prevent overlaps - only one popup in one time

There are many questions related about this topic. However there is no complete example for this widely used pop-up type: Basically i need a popup which will appear the top-right of a Feature (Point) ...
0
votes
1answer
209 views

Issue with a point insertion into a Geoserver points layer. WFS-T

How is the best way to insert a feature from the client side into an existing GeoServer layer? Maybe using an ajax call and JSONP? Or OpenLayers (i can't figure out how to have the proxy working)? ...
0
votes
2answers
1k 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
697 views

Openlayers redraw layers: consecutive redraw calls not working

SETUP OpenLayers / GeoServer + PostGIS REQUIREMENT I have a map with multiple WMS layers and of these I need to refresh a few after inserting a polygon in one of the layers. PROBLEM Given below ...
1
vote
2answers
741 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 ...
9
votes
3answers
1k views

Best way to animate radar data in openlayers

I have a project using OpenLayers which displays radar data on a map. The radar data itself is just a bunch of polygons each of which is filled with one of 6 possible colors. The goal is to animate ...
1
vote
1answer
486 views

Stop OpenLayers featureselected event listener blocking map drag event

When trying to drag the map, if the user clicks on a vector feature the featureselected event is triggered and the map dragging does not happen. Please try to drag the map starting from any feature in ...
2
votes
1answer
24 views

Converting .multiple shapefiles into Image Pyramid?

I have multiple shapefiles, and I want to import them as image tiles. How do I convert a shapefile into image format and then convert that single image file into an image pyramid such as that of ...
7
votes
2answers
361 views

What does vector tiled map mean?

I'm working on an application that renders geoJSON into OpenLayers map. The idea is about not having PNG images downloaded from external services (OSM or Bing) but having geo information in geoJSON ...
0
votes
0answers
11 views

How to add custom events to OpenLayers-based API?

I am woking on a GIS API built on top of OpenLayers. I have a class called xgis.group, which represent a group of layers. I want to add an event that can be triggered when a group is added. For ...
3
votes
1answer
586 views

How to use drag feature in 2 layers?

I used the following code: this.installDrag({layer:this.poiLayer,opt:'load',id:'poiLatlong'}); this.installDrag({layer:this.addNewPoiLayer,opt:'add',id:'poiLatlong'}); but drag is installing for ...
0
votes
1answer
121 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
190 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 ...
4
votes
3answers
3k views

How to properly utilize DWITHIN Spatial Filter in OpenLayers

Given the following code: var points = []; points.push(new OpenLayers.Geometry.Point(-110, 38)); points.push(new OpenLayers.Geometry.Point(-108, 40)); var lineString = ...
0
votes
0answers
9 views

Prevent framedCloud cut off in OpenLayers by adjusting relativePosition [closed]

I've been assigned a project and I just simply do not have enough knowledge of OpenLayers to figure this problem out. I've got this map with EPSG:900913 projection. We've calculated the ideal ...
4
votes
1answer
290 views

Grouping of layer with GeoServer and OpenLayers

I need help to display layers group/non group 1. with checkbox to select layer or group 2. icon/symbol for each layer. I saw example codes from OpenLayers where it's adding the layers statically. ...
1
vote
0answers
27 views

Multiple Leaflet maps on website in different divs

I'm pretty new to leaflet.js and I'm trying to figure out how to assign the same map with the same set of options and layers to a different HTML container instead of having to remove and add a new one ...
3
votes
0answers
22 views

Option for 360 degree movie embedded in Open Source GIS software?

Is there any Open Source GIS software available to embed 360 degree movies with the map? For a COTS example, there is the Active Link Vision (ALV) extension for ArcGIS from IWANE.
0
votes
1answer
177 views

register to event in openlayers 3

I have a web application in openlayers and I am starting to rewrite it to openlayers 3. In the application i have some features that i need to delete/move/add/edit the features then to save it to the ...
2
votes
0answers
13 views

load end event on a baselayer

can a loadend event be added on the baselayer? I made a code which would get all the loaded tiles but will be invoked when the map is finished loading all the tiles? I tried using Events.register and ...
2
votes
2answers
267 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()], ...
0
votes
1answer
774 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 ...
2
votes
3answers
840 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: ...
2
votes
1answer
44 views

how to make a delay to wait for the map to load

I have a question here. What code could I use to basically make it wait for the program to load the map first after the zoomIn command. Here's a part of my code. for (var z = zoomfrom; z <= ...
1
vote
2answers
258 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 ...