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

learn more… | top users | synonyms

3
votes
2answers
24 views

Ways to deal with thousands of features of vector layer in OpenLayers

I am building a webgis portal too show a big number of polylines (road network) and points (villages, cities etc.). All my data are stored in a POSTGIS and throuh geoserver and Openlayers I display ...
-1
votes
0answers
18 views

Openlayers or Mapserver Errors?

What does this error mean? Uncaught TypeError: Cannot read property 'get' of undefinedext-all.js:9 Ext.Container.Ext.extend.getComponentLegendPanel.js:128 ...
1
vote
1answer
26 views

GetLegendGraphic request string is too long

I am setting the SLD Body of a WMS layer on the client side. I set the style in JSON and I have some functions that convert the JSON to SLD (OpenLayers functions). It works fine for displaying the ...
3
votes
3answers
65 views

Alternative to OpenLayers plugin for QGIS?

Are there any alternatives to OpenLayers plugin to have Google / Bing maps for QGIS projects? I need an high quality cartography (both aerial and street view) but OpenLayer plugin do not allow to ...
1
vote
2answers
24 views

Showing csv file on map

Does OpenLayers support the uploading and rendering of CSV files? If it does, how? I used this code and it didn't help. var curLayer = new OpenLayers.Layer.Vector("layer", { protocol: new ...
1
vote
1answer
24 views

OpenLayers popup not closing on mobile device

I am developing an app that should also work on mobile devices. I would like to close all open popups when clicking on the map (in this case only one can be open at any point, as opening a new one ...
0
votes
2answers
21 views

OL3 check if point is inside a polygon

When I am adding a point to my web map I want to give it a latter that represent the area where the point is, so I need to know in what area is the point. In OpenLayers 2 I did it like this: ...
1
vote
1answer
28 views

How to get coordinates by click on map and send coordinate to MySQL?

I'm building my own web map. Now I want to get the coordinates by click on the map and send the coordinates to MySQL. I tried OpenLayers to get the coordinates from Openstreetmap,but I didn't know ...
2
votes
0answers
23 views

OpenLayers + MapServer - Finding reason for random missing tile

I am testing an application this is developed in OpenLayers 2.13 with Chrome, and I am using MapServer as the map provider. I have noticed some tiles occasionally does not render, when I pan/zoom ...
0
votes
0answers
8 views

Disconnected Satellite map tiles usable with OpenLayers or other javascript api

I'm looking for satellite map, usable with OpenLayer (or with an other js api), with a good scale (at least 100m, MapQuest stops at 1000m) and avaible for a disconnected mode (avaible for download). ...
1
vote
0answers
13 views

Updating Street Features in QGIS from Google Maps

I am a GIS student. updating infrastructure layers in QGIS for a small municipality. Everything is open source and there is no budget for buying new data. I need to update the ROADS layer - as the one ...
0
votes
0answers
12 views

Openlayers marker is not appearing from onclick event

I am trying to call a createMarkers function from an onclick event and all I get is a glimpse of a broken image tag. Here is my createMarkers function: function createMarkers(){ var lonlat = new ...
0
votes
1answer
27 views

Adding Google Maps layer in OpenLayers?

Please tell me why we use: max Extent: new Open Layers.Bounds( -20037508.34, -20037508.34, 20037508.34, 20037508.34) when adding Google Maps layer in OpenLayers? i.e. please tell me about ...
0
votes
1answer
24 views

How to get OpenLayers map object in HTML form?

There is a form to within a web page, map of OpenLayers is displayed in the form. I look at the source code of Html, and further a hierarchical state in the form. My goal is to get the Polygon at the ...
1
vote
0answers
10 views

OpenLayers 2.12 Cluster strategy labels are undefined

I am using a cluster and filter strategy for my map data. All the labels appear as "undefined." Here is my comparison filter: all_year_filter = new OpenLayers.Filter.Comparison({ Type: ‘~’, ...
1
vote
1answer
17 views

How do I get Open Layers to set the default view in EPSG:27700

Disclaimer, I'm fairly new to Open Layers, but I'm not new to JavaScript and/or Web Programming :-) Sysnopsis I have an open layers based html page, that I'm trying to use to render a WMS map served ...
0
votes
2answers
34 views

Programatically export Openlayers maps to static image file

As far as I understand this example from the OpenLayers page and the linked source code for this example, OpenLayers3 now has the offical ability to save maps as static image files. However, the ...
0
votes
2answers
32 views

OpenLayers: png as external graphic marker

I would like to style my point features. For some markers I use the convenient OpenLayers.StyleMap options, for few of them I would like to use an external png graphic (the camouflage circle). I use a ...
1
vote
2answers
12 views

how can we save vector layer as a file in openlayers

Im using mapserver + openlayer for GIS API and im new to GIS. I'm done with drawing line, point and polygon features in openlayer. but not being able to save it in some shapefile afterwards i got to ...
5
votes
1answer
70 views

How to resize a feature and prevent it from scaling when zooming in OpenLayers 3

I have initialized a custom OpenLayers 3 map (used to show houses for sale in the neighborhood) with an image as the map. Then, I create additionnal features and layers dynamically for each house ...
1
vote
2answers
20 views

How to get an existing feature's rotation angle in OpenLayers 3

I created two external controls for my OpenLayers 3 map: Rotate Left and Rotate Right. I already stored the last dragged/clicked feature in a global variable, yet I'm struggling to retrieve the actual ...
0
votes
1answer
44 views

Setting properties of geoJSON in OpenLayers

I have a map with layers that have similar attributes. I want to add a function that when you select a feature in a layer, it searches for a feature with similar properties in another feature (in this ...
2
votes
0answers
23 views

Excluding layers from GeoExt 2 Legend Panel

I'm trying to exclude some legend in GeoExt.panel.Legend. I've created a vector layer named 'City Extent' via a function but I want the legend to be removed in the list of legends in my legend panel. ...
0
votes
0answers
19 views

Open Layers Label styling (font size)

I have a polygon dataset that I am symbolizing in OpenLayers using a context to determine the correct color, and also a label for each polygon that I want to alter depending on the zoom level. But ...
0
votes
0answers
31 views

Offset problem with GeoTIFF and Google Maps

I have several GeoTIFFs generated with GDAL, and just some of them present a weird offset shift of a range of ~5 km in average. The range of these problematic rasters is as much as -85/-70/-20/0. ...
0
votes
1answer
14 views

OpenLayers FrameCloud does not find JavaScript functions

I am trying to use a function inside the FrameCloud function: if (selectedFeatures.length > 0) { popup = new OpenLayers.Popup.FramedCloud( ...
0
votes
0answers
10 views

Custom tile area in OpenLayers for every zoom level with a custom tile resolution

For an extend min_x, min_y, max_x, max_y in EPSG:3857 somewhere on the map (eg. france) I have an image cut into n x m tiles and requestable under an URL: http://localhost/map/{x}/{y}.jpeg How do I ...
1
vote
1answer
16 views

Connect OpenLayers3 Client with QGIS Server

at the moment I am developing a map editor on a web. After researching at the internet about map clients, I decided to use OpenLayers3 client because it is very simple an has all the tools i need ...
1
vote
1answer
25 views

How to convert distance in meters(EPSG:28406) to EPSG:900913 with OpenLayers?

For point I use OpenLayers and transform(): numZona = Math.ceil(parseFloat(lon)/6)); Proj4js.defs["EPSG:28406"] = '+proj=tmerc +lat_0=0 +lon_0='(parseInt(numZona)*6-3)+' +k=1.000000 ...
1
vote
2answers
19 views

Openlayers Animated marker

How to animated feature marker in openlayers like in google map example of bouncing marker. I'm new in openlayers so if you have a sample code much better.
1
vote
1answer
23 views

WFS vector layer not rendering with OpenLayers

Can anyone help please? I'm having problems trying to load a Geoserver/WFS vector layer using OpenLayers. I can see GML data loading in Firebug and also I can see the layer name is in the layer ...
0
votes
0answers
12 views

I'm experiencing problems getting the 'Map Menu' button to work

I've been designing a geoexplorer-like application using Opengeosuite's SDK.My big problem is incorporating the wizard in a window.From the code below,you can see the window's created, it does pop up ...
0
votes
0answers
12 views

PNG external graphic symbol does not look smooth in Geoserver/Openlayers?

I have a problem when i'm styling point using external graphic from .png image. I use 32 bit depth .png created in Photoshop, but when it display in openlayers or geoexplorer the edge of the image ...
2
votes
1answer
42 views

Bing Aerial (OpenLayers) won't show below 1:2257

I'm having this problem with open layers (plugin v. 1.3.5 - QGIS v. 2.6.1 Brighton) where it does not display the map when zooming in past 1:2257. If I zoom to 1:2556 (or anything below it), I won't ...
3
votes
6answers
149 views
+50

String update - only first character gets stored

Client: OpenLayers / Server: Geoserver When I update a WFS Element, JAVASCRIPT: element.feature.attributes.ENAME = "Mystring"; saveStrategy.save(); HTTP-POST: <wfs:Property> ...
1
vote
1answer
39 views

The command to open multiple tables in MapBasic

I would like to know what commands/statement can open (or select) multiple tables in MapBasic?. Please show me? Thanks
1
vote
0answers
16 views

Center map to a KML placemark with OpenLayers

I'm using OpenLayers 3 to display my KML layer on the map. My KML contains two placemarks: one contains a linestring of waypoints and the second one is a point, like this: <kml ...
1
vote
0answers
41 views

OL3: Is there a getUrl function for ol.source.XYZ?

Problem: I am designing an ol3 plugin that needs to copy the URL parameter from ol.source.XYZ/ol.source.TileWMS to ol.layer.Tile on map initialization. TileWMS: As per the docs, this is easily done ...
1
vote
0answers
24 views

Google Maps Engine and OpenLayers

I would like to know if it is possible to use your own map created with Google Maps Engine with OpenLayers? Any examples?
0
votes
1answer
18 views

problem with 'zoomend'

I wang to turn on/off some layers according to zoom level, my code are like this map = new OpenLayers.Map( 'map', options, {div: "map", allOverlays: true ...
0
votes
1answer
27 views

Openlayer What does this line?

Im trying OpenLayer 3 with .net and the sample have this code for get feature info by WMS. map.on('singleclick', function(evt) { document.getElementById('info').innerHTML = ''; var viewResolution ...
1
vote
0answers
15 views

From Openlayers 2 report generation

Can u suggest how a JasperReport can be geneated by an user accessing an point (say a wireless tower in map) on a active layer done in openlayers 3. Here the architecture uses openlayers 3 and is ...
0
votes
1answer
22 views

How to get layer extent in open layers or Zoom to wms layer extent?

I have added wms layers using follow: basemap = new OpenLayers.Layer.WMS( "Layer Name1", "http://localhost:8080/geoserver/wms/workspacename", {layers: 'workspacename:layername'} ); utility = new ...
1
vote
1answer
21 views

With OpenLayers is there anyway to keep existing features whilst adding more on each refresh?

Currently I use a Cluster strategy and a Refresh Strategy and get KML data from a url. The KML data plots points on a vector layer and the cluster strategy groups close features together. At each ...
2
votes
1answer
23 views

Toggle Layers in OpenLayers does not work

I am trying to make a map in which I can toggle layers on and off in the navigation bar. A simple version of my code is in the following JSFiddle: http://jsfiddle.net/TimLucas/3cqsmc2L/ If you click ...
2
votes
1answer
19 views

Change the stylemap styles after cloning

I'm creating bearing lines with labels. The style is set for all markup using the styleMap I am cloning the styleMap so that the labels don't get overwritten each time the page does a redraw - ...
0
votes
0answers
33 views

how to use raster layer (map image) as base layer in geoserver+openlayers and vector layers on top of that?

I am using Openlayers + Geoserver for rendering data on India Map. I am able to do it. However, the India map generated from Opensource shape files doesnt look good. So, I want to use Better India ...
0
votes
0answers
29 views

min/max scale doesn't work in Openlayers

I need to create a map service where the map scale should be between 1:5000 to 1:50000. My code is as follows: var options = { controls: [], scales: [5000, ...
1
vote
0answers
43 views

Show a kml (which uses longitude and latitude EPSG:4326) in “google/OSM” projection (EPSG:3857) in open street map

I am showing a kml layer, over OSM. The points in the kml are latitude/longitude (EPSG:4326). I don't have to convert any points or anything, it all just works. Great! Now, the client also wants to ...
0
votes
0answers
61 views

Moving marker along the track in openlayers

I want to make web map application in openlayers that allows me to make video tracking (not real time) What I want is like this Animated moving marker along line in gpx/kml/geojson format I have ...