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

learn more… | top users | synonyms

0
votes
1answer
4 views

unit of point radius in OpenLayers.js

What is the unit of measurement for pointRadius in the code bellow? var dotStyle = new OpenLayers.StyleMap({ pointRadius: 5, }); I mean what does 5 represent? 5pixels or 5mm? or ...
0
votes
1answer
96 views

OpenLayers Drag&Drop a pin to select position?

Is there an OpenLayers example that allows the user to set a position with drag&drop. I would like to have a pin and set the position after the user drags & drops the pin to a new position.
1
vote
1answer
197 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 ...
1
vote
1answer
138 views

Is there any readily available implementation of Mapserver (or Geoserver)- Postgres-Openlayers combination?

I am developing an web GIS for map data presentation for public. Is there any readily available implementation of Mapserver (or Geoserver)- Postgres-Openlayers combination or similar? More Details: ...
3
votes
1answer
82 views

Is it possible to link Google maps API for business from Openlayers?

I want to know whether it is possible or not? to get Google's 3 layer types in openlayers, nothing more. Just I came across a web-page about supplying private key from openlayers to google maps for ...
3
votes
1answer
53 views

Is OpenLayers appropriate for creating maps of a fantasy world?

Please excuse my ignorance, I've been directed here from Stack Overflow where I've been looking at a variety of HTML5/JQuery packages to create a map of a fantasy world that exists in a game I ...
2
votes
2answers
3k views

Openlayers & WMS - GetFeatureInfo problem

I'm making a small project but I encounter some problems. Let me explain that : Having generated mapfile with mapserver and they are viewable by the openlayers interface, I would like to make me ...
0
votes
1answer
900 views

Marker layer not responding to events in OpenLayers

I have multiple layers in OpenLayers: three vector layers, one google map layer, and a marker layer. I registered feature selected event to all three vector layers (which works fine, but btw is that a ...
2
votes
3answers
982 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
228 views

Openlayers map WMS stretched by latitude

I am working on a small javascript application for displaying map with WMS layers from 2 servers. The problem is, that image is stretched by latitude, it is wider, as it should be. This is is how it ...
0
votes
3answers
245 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 ...
0
votes
1answer
218 views

How to Represent large data using google map api in javascript

1) I am trying to represent data using bins as the data was too large to display each and every point simultaneously. but the problem with this also existing if the no of bins are getting larger ...
3
votes
1answer
124 views

OpenLayers Full Screen control not working

I have a problem with openlayers controls. I have 2 controls which are perfectly working, var mousePositionControl = new ol.control.MousePosition({ coordinateFormat: ...
3
votes
2answers
27 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 ...
3
votes
6answers
151 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> ...
5
votes
4answers
5k views

OpenLayers: How to create a rectangle?

I want to use OpenLayers to draw a simple rectangle (based on 4 coordinates) on my map. I would also like to fill the rectangle with a color. For example (EPSG:4326): 13.40, 52.50 13.50, 52.50 ...
3
votes
3answers
69 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 ...
13
votes
7answers
1k views

Comparing two maps with nice web interface?

Is it possible in Leaflet or OpenLayers to compare two maps with a bar to slide between the two? Examples include: ...
-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
573 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( ...
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 ...
0
votes
1answer
320 views

Openlayers 2.12 - add selectFeature to button results in “Geometry Undefined”

I have modified the Openlayers mobile Vienna WMS example, and am trying to change the labelButton to allow selecting of features to open a popup. I think it is necessary to do this as on a touch ...
0
votes
1answer
279 views

OpenLayers overview shows wrong map

i have a problem. I have to implement a map with OpenLayers. As BaseLayer I use an external WMTS-Service, which has the projection EPSG:25832. I want to have an OverviewMap, but the OverviewMap ...
1
vote
2answers
25 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: ...
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 ...
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 ...
3
votes
1answer
824 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 ...
0
votes
1answer
194 views

WMS BBOX in URL vs in params

I'm new to OpenLayers and Geoserver and I have a problem (of course :P). I must retrieve a layer from Geoserver's WMS service, and I want to construct the URL to request it. If i try to make this: ...
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 ...
0
votes
1answer
273 views

Overlay wms + google layer in Openlayers

I want to use OpenLayers, GeoServer layer with the google maps api as a base. In my GeoServer layer is redesigned to EPSG: 900913 when I open the geoserver openlayers with everything ok. On a map ...
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
1answer
98 views

how to get Extent or BoundingBox from geoserver in openlayers3

I use wms layer from geoserver on my map and i use openlayers3 api. I want to zoom to my selected layer but for this i have too use extent of my selected layer. ...
5
votes
3answers
7k views

custom Layer Switcher style in openlayers

I use this example to customized my layer switcher in openlayers.But I want to change the position,width and height of layer switcher.I know it relates to CSS.I change some numbers to get some ...
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). ...
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 ...
0
votes
1answer
234 views

OpenLayers: Show a styled title similar to pop-up but always visible?

I need to basically create boxes with titles inside, set to different styles (different coloured box, different FontAwesome icon etc.) set to specific points on the map, ideally replacing the label ...
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 - ...
1
vote
2answers
14 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 ...
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 ...
4
votes
3answers
2k views

Unable to create WFS successfully

I know there has been lots of WFS assistant and I did follow this one word by word, which I found was the best in the entire gis stack but still no clue why I am unbale to render a WFS on base map. ...
10
votes
5answers
21k views

How to add a simple WFS layer from GeoServer to OpenLayers map?

I'm trying to add one of the included datasets with GeoServer to an OpenLayers map. I've followed the OpenGeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a ...
3
votes
1answer
101 views

How would I get number of tiles loaded, and total number loading?

So new to OpenLayers 3, and I'm trying to create a "loading bar" to indicate how much of a layer has loaded. I'm thinking of making it based on the number of tiles loaded so far divided by the total ...
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 ...
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 ...
3
votes
2answers
656 views

Offline Phonegap/Openlayers App

I have a mobile app that uses Phonegap with OpenLayers and Geoserver. Now, I need to make the app available completely offline. The amount of data points can get very large depending on what client is ...
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
111 views

Populate geoext2 gridpanel from openlayer vector features

I need to populate a extjs datagrid with a openlayers features. The official example http://geoext.github.io/geoext2/examples/grid/feature-grid.html doesn't help me, beacuse the data is loaded from a ...