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

learn more… | top users | synonyms

1
vote
1answer
27 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
95 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
44 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
26 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
134 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
66 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
71 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
56 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
2answers
40 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
61 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
16 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
20 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
26 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
45 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
52 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
28 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
22 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
30 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
59 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 ...
4
votes
6answers
164 views

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
47 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
2
votes
1answer
89 views

How to center the map to a KML placemark with OpenLayers 3?

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
85 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
32 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
19 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
34 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
21 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
35 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
22 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
25 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
26 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
47 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
37 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
80 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
82 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 ...
1
vote
2answers
40 views

HTML Dom elements as marker / feature in Openlayers?

I want to set HTML Dom element as marker in openlayers, instead of GIFs,PNGs. Is it possible to do so?
1
vote
0answers
25 views

What is the purpose of setting MaxResolution?

In map options specification like the one that follows, Help me explaining 1.the purpse of maxResolution, 2. How maxExtent works? I mean, If I add say, OpenStreetMap layer to a map with maxExtent ...
2
votes
1answer
91 views

Choosing a platform for developing opensource GIS web application.

I am from a non programming background. I started learning GIS opensource web applications from last 3 moths. Now I am using only notepad++ for writing codes and I am familiar with javascript, HTML ...
2
votes
1answer
66 views

Display problem while using openlayers with jquery

I want to use jquery with openlayers for rich interface. I have used layout-master for simple layout. But the problem is, when I add simple map using openlayers 'map' will not display at the center.! ...
1
vote
0answers
31 views

OpenLayers trying to use cluster strategy and filter strategy on the same layer

I have a cluster strategy being used on a vector layer that is working correctly. However, when I try and add the filter strategy to the vector layer, the filtered data does not appear on the map, in ...
3
votes
1answer
162 views

Selection instead of click for display of features in openlayers

Currently I am able to display a popup of a feature that was clicked on. I would like to be able to instead of click, to select an area and then show the feature(s) from the selected area. Here is ...
0
votes
0answers
58 views

Select Multiple feature using select interaction

How to select multiple feature using select interaction in openlayers 3?Is it possible. Multiple feature can be selected using drag-box. But I have needed using select interaction.
0
votes
1answer
149 views

Line dash not working OL3 (Openlayers 3)

I want to display a dashed line in a vector layer, as the it's shown in the Documentation there is a propriety called lineDash , but it didn't work for me here my code : var iconStyle_line = new ...
2
votes
0answers
31 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
0answers
24 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
1answer
66 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 ...
0
votes
1answer
169 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: ...
2
votes
0answers
22 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 ...
0
votes
0answers
123 views

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: ...
0
votes
0answers
85 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 ...