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

learn more… | top users | synonyms

0
votes
0answers
2 views

Openlayers Vector Layer Features are empty even after DrawFeature executed

I am new to Openlayers and Javascript. I am creating a web map that will allow users to draw shapes on top of a base map. I'm trying to figure out how to access the coordinates of the shapes that are ...
2
votes
1answer
29 views

Oracle / GeoServer / WFS-T / Openlayers many polygons as one feature

Newbie question regarding Oracle / GeoServer / WFS-T / Openlayers. I am creating a table that will hold geometry features a user creates/updates. My question is, I would like to have just one record ...
0
votes
2answers
3k views

How to configure Proxy.cgi file for Geoserver On Tomcat?

I have a web map application in my local machine(windows xp and dont have IIS) and I have postgis data in Geoserver on Tomcat (Ubuntu). To get the WMSgetfeatureInfo, I have configured the proxy.cgi ...
2
votes
3answers
2k views

OpenLayers GetFeatureInfo for GeoServer Layer Groups

I've created a GeoServer layer group. I'm using OpenLayers.Layer.WMS to retrieve the layer group, and this works fine. In addition, I'd like to pull feature info for the layer. For this, I'm using ...
1
vote
2answers
561 views

How to trigger a map click event?

I have a map with some markers. On clicking a marker, a popup would appear and on clicking the map, any visible popup would be hidden. I want to hide any currently visible popup upon clicking a marker ...
0
votes
0answers
18 views

How to organize database with objects having GPS coordinates (in radians)

I have a huge database of different objects organized in tables. For instance photos in one table and metadata of each photo in other. Most of them have their GPS coordinates in radians stored as a ...
0
votes
0answers
2 views

Binding JqxGrid and Openlayers map

I want to represent the layer features in Table format using JqxWidgets. How to bind the jqxGrid with Openlayers 2.x map (i.e., WMS layer). Please help out this.
1
vote
0answers
4 views

WFS layer using isWithinDistance function in SLD?

I want to create a cector layer. After querying the layer, if any two of the features are within 300 meters distance, I want to join those two lines and give buffer around the line and display. Is ...
0
votes
0answers
6 views

display thematic map using openlayers

iam displaying map from mapfile(mapserver) in c# using openlayers mapfile is connected to postgres it is working well but now i want to diaplay thematic map using the postgrs database using ...
7
votes
2answers
564 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
3answers
258 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 ...
2
votes
1answer
424 views

combine two OCG filters in Openlayers : ERROR: invalid input syntax for integer

i need to combine two OCG filters. each one works fine separably but if i combine them using Filter.Logical.OR, the first one works only. var c_filter = new OpenLayers.Filter.Logical({ type: ...
2
votes
3answers
1k 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: ...
1
vote
1answer
201 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 ...
3
votes
3answers
60 views

Difference between GeoServer and OpenLayers

I recently installed GeoServer and downloaded OpenLayers also. I am a bit lost about which one to use when it comes to add functionality in my web map. For example, I want to add layer switcher, ...
0
votes
1answer
15 views

OpenLayers measure map rendering time

I am using OpenLayers version 3 (answers with ver 2 are also OK) and want to measure how long it takes to render the vector layer. So, I have a vector layer with features: var vectorLayer = new ...
0
votes
1answer
945 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 ...
1
vote
1answer
14 views

How do I disable mouse scroll zoom in OpenLayers 3?

I'm trying to override it 'cause it's so dang sensitive. Bonus points if you can also demonstrate a elegant way to override, but, well, I can probably figure that out.
1
vote
1answer
29 views

How to update back to GeoServer/Oracle from OpenLayers

Folks, I have followed the example to setup a WFS Transaction successfully: http://dev.openlayers.org/examples/wfs-protocol-transactions.html My environment is GeoServer 2.6.1/OpenLayers 2.12.1. I ...
0
votes
1answer
109 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.
2
votes
1answer
36 views

How to project a GeoJSON on the fly in OpenLayers 3?

I have been trying to load a GeoJSON without success. I have a map with a background layer from OSM. I have some data in 4326 I want to overlay on that map. I do not want to transform coordinates one ...
0
votes
1answer
1k 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 ...
3
votes
1answer
861 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
2answers
14 views

getFeatureInfo is working only if line of polygon is clicked, does not work inside polygon

I have issue with getFeatureInfo function. I can get features of polygon only if it is clicked on line (border) of polygon. By clicking on line, i get features of few polygons, and i want to click ...
0
votes
1answer
302 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 ...
1
vote
2answers
151 views

Error in displaying wfs layer from mapserver/postgis

I have read and tested all the relative posts but I still don't have a solution for my problem. I have a layer suscribers (points) stored in postgis database with srid=32232. I would like to display ...
1
vote
1answer
121 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 ...
1
vote
1answer
148 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: ...
1
vote
1answer
19 views

How to implement a WPS client in OpenLayers 3?

I was wondering if it is possible (and what is the recommended way) to use OpenLayers 3 to do the work of theOpenLayers.WPSClient? As shown in the old WPS client example, OpenLayers 2 can be used to ...
0
votes
2answers
78 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: ...
0
votes
1answer
27 views

How check if a point is inside a map

I have a map and one point. I want create an area and check if a point is inside the area. map = new OpenLayers.Map("map"); map.addLayer(new OpenLayers.Layer.OSM()); var lonLat = new ...
1
vote
1answer
19 views

Function to intersect another polygon using openlayers

I wonder if someone here have a function JS that when I draw a polygon I can see if i drawing on another polygon, like intersect.... if polygon intersect say to me a alert...using openlayers. Thanks! ...
3
votes
1answer
177 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: ...
0
votes
0answers
30 views

WFS without Geometry data type in openlayers [on hold]

Is it possible to display layer as WFS if layer does not have field with data type "Geometry" ? I have shape file which imported in postgresql and want to display or access as wfs layer from ...
2
votes
1answer
428 views

Problem with writing the srsName into gml output in OpenLayers

I am trying to write out my geometry in gml format after it is drawn in OpenLayers. Actually it is working fine, I get the gml like this: <gml:Polygon> <gml:outerBoundaryIs> ...
3
votes
2answers
705 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 ...
0
votes
1answer
129 views

How to select point feature rendered by picture

I use GeoServer as my GIS service and render some points with pictures, SLD code like this: <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource ...
0
votes
1answer
217 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
1answer
157 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. ...
0
votes
1answer
335 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 ...
1
vote
1answer
24 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
137 views

How to query a PostGIS database through Geoserver and OpenLayers

I've built a web application using OpenLayers, which is connected to my PostGIS database through Geoserver. Now that I'm able to successfully display all of the layers, I'd like to add ...
0
votes
1answer
19 views

WFS layer without features

I have a layer with many features and when I add it to a map as WMS layer it works. But if I add the layer as WFS it seems there are no features. The code I use to load WFS layer is: var ...
0
votes
0answers
65 views

Using WMTS Stream in OpenLayers?

I am trying to write some OpenLayers javascript that can display a WMTS stream from a publicly available REST service located at: ...
1
vote
1answer
34 views

QGIS/OpenLayers - How to add a “labels-only” reference layer (basemap focused on labels)?

In ArcGIS you can add a "reference basemap" which features labels for key locations as in: http://www.arcgis.com/home/item.html?id=8b3d38c0819547faa83f7b7aca80bd76 however, in QGIS, I cant figure ...
1
vote
1answer
198 views

select (click) labels in openlayers

I have the following style for an OpenLayers vector layer. Color and Name come from Geoserver/PostGIS. I red that setting labelSelect to true, user can also click the label, not only the point and ...
3
votes
1answer
119 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
27 views

Openlayers how to display wfs with another projection than EPSG:4326

Here is some OpenLayers code: var projection = "EPSG:3009"; map = new OpenLayers.Map('map', { // projection: "EPSG:900913", // displayProjection: projection, // displayProjection: ...
0
votes
0answers
8 views

Rotated custom tile set in OpenLayers

I'm thinking of using Openlayers for an interactive map of a building. I'll have custom tile layers for each floor of the building's interior overlaying regular world map tiles. The building is on a ...
1
vote
1answer
25 views

Google Hybrid Map tiles won't load in OpenLayers when centered on certain position

Since the Google Maps API update to V3.2 (17 Feb 2015) our maps have not been loading to their initial state, centered over the Gulf of Mexico. When the center location is: center: new ...