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

learn more… | top users | synonyms

2
votes
1answer
2k views

How to change an OpenLayers vector layer from automatic to manual get request?

I have a web server that returns a FeatureCollection in JSON. I was getting this using the code below, which works perfectly: var vectorLayer = new OpenLayers.Layer.Vector('geoJSON', { ...
0
votes
1answer
1k views

Requesting remote data using openlayers for multiple URLS and storing respose value according to URL

I have problem creating feature count window. I have urls stored in as json object. I iterate it with jquery and send request to remote data. The I have featureStore which is initially set to 0. When ...
1
vote
0answers
186 views

Project tiles from custom imagery in transverse mercator with OpenLayers

I have the following parameters of a custom imagery and I need to set-up a layer in OpenLayers with which I would project the tiles properly from this imagery. TransverseMercator ellipsoidName=WGS84 ...
4
votes
2answers
2k views

How to collect data via WFS and Popup

I have a map with a WFS-Layer and I am able to add Polygons to my data stored in a PostGIS-database, served with Geoserver (Openlayers, Geoserver 2.1.4, PostGIS 2.0 for PostgreSQL 9.1).) How can I ...
4
votes
1answer
6k views

OpenLayers Hide/Show Layers from external checkboxes

I'm using OpenLayers with mapserver to display a lot of raster images and queryable wms layers. Everything works fine, the layers can be turned on/off in the OpenLayers layer switcher...But now I want ...
2
votes
2answers
256 views

Drawing a rectangle that will always be on certain area of map

Using OpenLayers is it possible to draw a rectange that will always be on one portion of map without regards to zooming and panning of map?
2
votes
0answers
206 views

Displaying text from dxf in Openlayers

I managed to import .dxf into Postgis table, and now have, among others, rows with Point geometries and values in text column (which corespodent with Label values from ACAD .dxf). What is the best ...
0
votes
1answer
3k views

How to Obtain the feature attributes from feature collection

I am able to obtain the features of the layer which is selected by the user in the Layers table and then intersected by a user defined polygon, using e.features. I was able to obtain the attribute ...
1
vote
0answers
836 views

searching GeoJSON features

After googling for many days and reading the OL documentation, I don't understand well how the filterToParams in OpenLayers.HTTP protocol should work, what I'm trying to do is to find and display the ...
3
votes
3answers
3k views

local tiles server for offline access

Anyone knows if there is a "lightway" solution to mount a local tile server? Feature I'd to provide is local storage of small sections of maps, not more than small city for example, in order to ...
3
votes
2answers
474 views

Design question: what's the role of WFS-T in this kind of webapp?

I have more experience in "traditional" (Java EE) webapp development, and I am trying to figure out a decent design for a mapping web application. My application has a map, and users can see and edit ...
6
votes
4answers
3k views

Best solution for printing Google Maps?

What is the best solution so far for printing Google Maps as a base layer of Vector layers in Geoserver/OpenLayers application ? I used to print WMS layers using GeoExt print page example, but when ...
0
votes
1answer
137 views

Control visibility of multiple layers

I am displaying multiple feature types using one layer in OpenLayers, like here: var **vector** = new OpenLayers.Layer.Vector("My Layer", { maxExtent: new OpenLayers.Bounds(-1.09863,44.42907, ...
3
votes
2answers
337 views

Can OpenLayers request different language tiles from map providers (eg Bing or Google)?

If I am in the US and my browser locale is en-US, I'll get English language maps by default from Bing. Same thing if I access Bing tiles with OpenLayers. If I change my country/region to (for ...
1
vote
1answer
215 views

Issue openlayers and tilestream

Basically I created a MBtiles using Tilemill and it generates a map with six zooms. I implement it into tilestream. I added a layer on the openlayers module(Drupal) in XYZ: ...
3
votes
0answers
2k views

Map printing using OpenLayers

Following OpenLayers map printing demo here, I'm able to get my map in image format. But I'm facing two issues with the export: Google Street base map is not included in the image output; Whenever I ...
35
votes
4answers
17k views

Should I use OpenLayers or Leaflet?

I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver ...
2
votes
2answers
2k views

Fixing the OpenLayers MBTiles Example

I've been trying to implement the OpenLayers Example for reading MBTiles: http://projects.bryanmcbride.com/ol_mbtiles/ Right off, the link to the necessary mbtiles.php script was broken, but I found ...
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 ...
3
votes
2answers
814 views

OpenLayers 2.12 + KML from String + Change markers'icons

Reading this post How to add KML data but from variable - not from url? I changed the way of reading KML files (from HTTP to a string loaded using jQuery) /** * The OpenLayers object * @type ...
1
vote
0answers
386 views

Tie up LineString to the feature when dragging it in OpenLayers

I have an application in OpenLayers which shows a number of devices (Feature) on a map. The devices are linked between each other by cables (MultiLineString). ...
2
votes
1answer
548 views

How to export vector features to grid using proxy and WFS protocol?

I am trying to export vector features (current view) as a grid, something like: http://workshops.opengeo.org/geoext/wfs/grid.html so far layer features are not being retrieved.. I got empty grid in ...
0
votes
3answers
789 views

Trying to fetch feature data by intersecting Vector Polygon and WMS feature layer

I am trying to intersect a user defined polygon with a Point WMS Feature Layer. I am using the following code action = new GeoExt.Action({ text: "draw poly", control: new ...
1
vote
1answer
356 views

Adding CSV upload browse button to Ext.Action

I am trying to create a CSV File upload on GeoExt Map App. I need to place the upload function within the Ext.Action, so that I can add it to the toolbar of the GeoExt Panel. I am trying to implement ...
3
votes
1answer
665 views

OpenLayers 2.12 + click handler + get the name of the vector

Basically, I add several vector layers (KML content got from jQuery GET) in this way: var layer1Vector= new OpenLayers.Layer.Vector('activeInfo'); layer1Vector.addFeatures(featuresLayer1Vector); ...
1
vote
1answer
255 views

How to parse xsd:schema file using openlayers?

I got layer column names using this thread. But I am stuck parsing it. How to parse this xml using openlayers? <xsd:schema elementFormDefault="qualified" ...
1
vote
1answer
746 views

How to disable overlay check box after a certain zoom level?

How do I disable a particular overlay checkbox in the Openlayers Layerswitcher?
1
vote
2answers
397 views

How to print a vector layer over Google map? “Physical Printing”

I use Geoserver, Openlayers, Extjs and GeoExt to build an app. I am trying to get vector layer on Google map printed with pop up a Print dialog, I tried : var targetElement = Ext.getCmp('mapPanel'); ...
3
votes
2answers
618 views

How to get column names of layer (WMS) using OpenLayers?

Is it somehow possible to get layer's column name using OpenLayers? any example and documentation would be really useful? Edit: I have already tried WMS_describeLayer topp:states layer: <?xml ...
4
votes
3answers
641 views

Search by street name/postcode in OpenLayers

Can anyone help me search by street name in OpenLayers? I essentially want to be able to search fir streets/postcodes in openlayers in the same way I can search on google maps. Is this possible. ...
2
votes
1answer
91 views

Error executing CQL on layer other then demo layers

I have some sort of wierd problem as I was playing with CQL. CQL works well with given layer but when i try with layer loaded from mapinfo or some views then it does not work. As in the picture when I ...
1
vote
0answers
109 views

Geoserver FTL style in IE not rendering

I am using the WMS GEt Feature Info feature in Geoserver. I created an inner ftl (content.ftl), using the header and footer ftl as it is. The WMS Get Feature Info will go into a basic Openlayers ...
1
vote
1answer
2k views

How to get feature info from wms layer

I have used your code for picking feature info from wms layer using WMSGetFeatureInofo function.I have used you this link. ...
4
votes
1answer
278 views

How to create a vector feature drop target?

I would like to create, inside an openLayers map, a drop target for my features. The user should be able to drag a vector feature, drop on the target so that some further action can be triggered (in ...
0
votes
1answer
925 views

lonlat from geometry point gives strange result

I added a vector layer to my main map with the controls like the example from openlayers: http://openlayers.org/dev/examples/draw-feature.html Now when I want to get the resulting lonlat from the ...
3
votes
2answers
2k views

Dynamically adding features with cluster strategy

I am trying to dynamically add features to a vector layer, and use cluster strategy to group those features accordingly. I am able to do this for the first set of data that gets loaded on the map. ...
2
votes
1answer
2k views

How to get Openlayers cluster strategy work for large data?

The map Layer has around 1500 points. I am able to display all the points in the map without any problem but adding the cluster strategy to the layer does not work. The Cluster strategy functions when ...
2
votes
2answers
755 views

Openlayers - how can I parse a KML file

I have found some info on here regarding opening a KML file (with groundoverlay) from a url in Openlayers. In order to open a KML with groundoverlay, it must first be parsed. However, after I GET, I ...
4
votes
1answer
1k views

GeoWebCache and OpenLayers horizontal resolution error

I have a mapping application (the Arne G. Brekke Bygdebok Collection) which uses OpenLayers to load map tiles from a GeoWebCache server operated by the Statens Kartverk (Norwegian Mapping Authority). ...
1
vote
1answer
273 views

Parse a KML for Openalyers

I am trying to get a kml from a URL to display in OpenLayers. However, it is a ground overlay so it cannot be displayed the standard way. I found this thread: Does OpenLayers supports KML Ground ...
2
votes
2answers
705 views

Exporting OpenLayers.Layer.WMS to GeoJSON / KML

I'm looking the way to exporting an especific region of a WMS layer to some XML format (GeoJSON, GML, KML) using OpenLayers and Geoserver. I've found how to export features objects with ...
3
votes
0answers
444 views

Get tile URL with projection different than 900913

I have the following code, which should display a slippy map showing tiles producted by me with mapnik: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 ...
1
vote
1answer
305 views

GeoServer Exception: No such operation WMS 1.1.0 GetFeature

I'm using GeoExt, OpenLayers and GeoServer. I've added a checkbox to my layer tree which, when clicked, activates a "select feature" control such that when a user clicks on the map, the feature ...
1
vote
0answers
245 views

Are there any examples of creating custom openlayers geometry types?

I am working on a project that uses openlayers where IE8 compatability is a requirement. Unfortunately, there seems to be some performance issues with OpenLayers in IE8 when parsing a large number of ...
3
votes
1answer
4k views

OpenLayers - is it possible for a feature to have both a single click and double click event?

I'm have an OpenLayer map with a single vector layer containing many features. I've been using SelectFeature to pop up some info when a feature is clicked, and that's working fine. However, I now want ...
5
votes
3answers
8k views

Change Icon of Single Vector Feature in Layer

Currently I am trying to change the icon of a particular feature of a vector layer that the user is focusing on. I add each feature to the map like so: var point = new ...
1
vote
1answer
591 views

OSM Map projection doesn't seem to change

I have the following OpenLayers map: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
0
votes
1answer
409 views

Vector layer shifted on OSM map: why?

I've defined the following map: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
3
votes
1answer
110 views

Is it possible to create Non Earth map in openlayers?

I'm working on a little hobby project for a game, it has some information about locations that are non earth coordinates with extents of 99999999999999999 to -99999999999999999 might even be larger. ...
0
votes
2answers
719 views

Unable to reflect JSON in grid

I am trying to fetch the data from JSON and display it onto the grid. The store has all the JSON data, but I it is not visible in the Grid. The grid comes out completely blank. This is the ...