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

learn more… | top users | synonyms

0
votes
2answers
149 views

Add features to vector layer from WFS protocol read response

Im trying to add the features i get from a WFS query using the WFS protocol. But something doesnt work. I have looked at other post with people having similar problems, but their solution dont fit ...
1
vote
1answer
47 views

Relationship between scale, ppi, and map resolution

Wanting to know the screen resolution (pixels per inch) of my device, I displayed my map resolution and scale using this openlayers code: console.log("resolution: " + map.getResolution()); ...
1
vote
2answers
111 views

OpenLayers: Point icons disappearing

I have a very simple setup where I have a feature vector layer on top of an OSM layer in OpenLayers 2.13.1. However, I notice that the icons of my points in the vector layer begin to 'become ...
2
votes
1answer
44 views

Why my Shapefile is not loaded into OpenLayers?

This is my website for test: http://www.cv.nctu.edu.tw/shapefile-js-openlayers/ol_simple.html I want to put my Shapefile in OpenLayers. I found an example at ...
2
votes
2answers
276 views

Printing possible for openlayers GeoJson WFS with Mapfish printing service and wkhtmltopdf?

I searched lots of places but I couldn't find proper examples or documentation to do printing using Mapfish Printing service or Wkhtmltopdf. My application has a few WFS layers from openlayers and ...
1
vote
0answers
322 views

Openlayers Vector Layers with Google Map Base Layer (via Grid): Vectors Stick but can't get correct resolution/projection?

Revamping this question instead of opening a new one. Previous issue: vector layers were not "sticking" to the map, so when you would zoom in or out the vector layers would "come out" at you. Note ...
1
vote
1answer
15 views

Get Center of Geometry in OpenLayers 3

Given a Geometry object in OpenLayers 3. How would one go about getting its center? Older versions of OpenLayers provided a getCentroid method. There was also a getBounds workaround. But these appear ...
1
vote
0answers
11 views

OpenLayers map with Nominatim lookup function not working

I am trying to create a simple map with a search function, my minimal example is here: http://jsfiddle.net/TimLucas/vbaupe30/4/ For some reason the coords transformation after the script has received ...
0
votes
1answer
438 views

KML file seems to load in Openlayers without error but doesn't show vectors

I'm trying to load a KML file into an Openlayers map. It seems to successfully run but I am not seeing anything show up on the map. Vectors should show up in an area of New Mexico if it's working ...
2
votes
2answers
32 views

Print view or export to PDF

I am using OpenLayers Tile layer fot my map application. I have WMS layers on map like this: Parcels, Streets, Buildings, Gas Pipes, I zoom to somewhere on map that all layers are visible. I want ...
0
votes
1answer
148 views

Mapfile SYMBOLSCALEDENOM and SIZEUNITS (miles) 200: Keep SIZEUNITS while circles change size based on zoom

I've been trying to understand how to keep the SIZEUNITS at 200 while the circles appropriately adjust based on zoom level. Thought I had this working properly but turns out I did not. You can see ...
0
votes
1answer
95 views

request two layers in search action of one PanelForm

here's my case: i have a panelForm with 4 fields, and a search button, that search for the features that correspond to the 4 fields given by the user. and i have two layers that both contains the 4 ...
0
votes
2answers
205 views

How to set default style of layer using rest api in Geoserver

Hello friend, I want to change the default style of the layer in Geo server using the REST API.For this i get this code curl -v -u admin:geoserver -XPUT -H "Content-type: text/xml" -d ...
0
votes
1answer
153 views

WMS - Export Retrieved XML Data

I use WMS layer in my app and could successfully retrieved Feature Info by click like so: http://openlayers.org/dev/examples/getfeatureinfo-control.html My question is: Is there any way to export the ...
1
vote
1answer
351 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
0
votes
1answer
44 views

Different results of fullscreen mode in OpenLayers 3

anyone here have already met similar problem like me? My original application is not viewing correctly (in all browsers) in fullscreen mode, which is openlayers 3 functionality. The problem is with ...
0
votes
1answer
15 views

Problems with a wms layer in Openlayers 3

First of all sorry if my english isn't good. I'm trying to add a layer into an Openlayers 3 map. This one is which I want to insert: new ol.layer.Image({ name: 'cartografia', style: 'cartografia', ...
1
vote
2answers
291 views

OpenLayers add a json layer to existing map on load

I am new to OpenLayers ... i have managed to build a layer with several features (draw tools, delete and save buttons). When the user draws shapes on the image map and press Save, these are stored ...
4
votes
1answer
360 views

Grouping of layer with GeoServer and OpenLayers

I need help to display layers group/non group 1. with checkbox to select layer or group 2. icon/symbol for each layer. I saw example codes from OpenLayers where it's adding the layers statically. ...
0
votes
2answers
28 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
1answer
22 views

How to hide country and city label?

Now I'm using Openlayers to integrate Openstreetmap into my web. Besides, I want to hide/remove all the labels on map(country,city,road,lake....). How can I do that without establishing my own ...
2
votes
1answer
607 views

How to dynamically measure and display radius of circle in OpenLayers?

I want to give my user the ability to click on the map and give him a dynamic circle drawing tool which also reads out the radius measurement. That way the user can see how big the circle he creates ...
1
vote
1answer
298 views

SQL Data: How to draw circles with a radius based on lat/long data in DB

I have a . sqlite file with many columns, two of those columns being lat and long. I've been searching around for a bit now (don't think I want to be using BuildCircleMbr from spatialite?) but I'm ...
4
votes
3answers
103 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
1answer
450 views

Problem creating a popup in mobile openlayer

I'm trying to use the mobile version of openlayer, unfortunately I could not use framedcloud in it, I could only create a square popup does not look very aesthetic, besides the main need is to ...
2
votes
4answers
176 views

Openlayers Vector Rendering

I've just added a couple of more WFS backed vector layers to a map and the performance has dropped. Whilst debugging this I've noticed that openlayers is considering every feature in the visible ...
2
votes
3answers
2k views

How to use WKT in Google Map V3?

We have a shape with the following WKT. The problem with google map we normally extract out each of the lat and long value and put into an array and finally will do something like this. It works fine ...
0
votes
1answer
218 views

How to create switch the layers option using geoserver?

I did create some maps with three layers using layer groups with the help of some tutorials but i dint get the switching options like others. How to get that + mark locates in the right top corner ...
1
vote
0answers
10 views

How to rotate a feature in openalyers 3

I cannot find any api to rotate a feature / geometry in openlayers 3. How do I rotate a polygon in openlayers 3?
0
votes
2answers
20 views

Openlayers Marker z-index

I have multiple marker in one layer OpenLayers.Layer.Marker and some times the marker overlap the other marker. My question is how do I bring the marker in front when its click? is there a setZ-index ...
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 ...
1
vote
1answer
217 views

problem with popup conclusion on pressing a marker

I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB) var map; var markers; function ejecutar() { init(3); ...
0
votes
0answers
27 views

Can I use Google's Geocoding with OpenLayers provided the base map is Google Streets?

Not strictly a GIS question but I am hoping someone might have some experience in this area... Understanding the 10.1.1a clause in the Google Maps/Google Earth APIs Terms of Service: (a) No ...
0
votes
1answer
8 views

Strange behavior when zooming with “Tiled:True” in a WMS layer

I activate the TILED parameter to True in a WMS Layer and I get the following strange behavior as shown in the images: This happens only for a couple zoom levels. If I zoom out/in more the features ...
1
vote
1answer
46 views

Openlayers: select a feature programmatically from GeoJson

I am working on a project that uses openlayers (version2.14)to display a Bing layer(GeoJSON format), I have no problem reading the GeoJSON and display features, but I want to select a feature ...
2
votes
1answer
419 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: ...
-1
votes
0answers
9 views

OpenLayer select feature from geojson [duplicate]

His guys.I use openlayers(version 2.14) How to get select feauture from geojosn? http://jsfiddle.net/xv6feg0n/3/
1
vote
1answer
649 views

How to disable all mouse event in openlayers' map div?

version: OpenLayers-2.13.1 brower : IE8 (I Hit it!!! But I need to work on it) I create a div with id 'map' to display openlayer map. Sometimes, I need disable map div catch any mouse events, let me ...
1
vote
1answer
11 views

'setExtent' on vector layer not working?

As pre my requirement I want to set layer extent after drawing all the features. May some feature not visible after applying setExtent() function(this is my requirement). But it's not working. It's ...
2
votes
1answer
27 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 ...
2
votes
1answer
337 views

OpenLayers Google v3 and other layers drift apart

I'm stuck. My code works with OSM, but I need it to work with Google as well. The problem is simply that Google v3 and my other layers are not playing well together at all. They don't zoom together. ...
1
vote
1answer
510 views

Openlayer 3 interaction Select Problem

i have a problem as a short and clear. When i use the snipped code var select = new ol.interaction.Select({ condition: ol.events.condition.mouseMove }); base map's mouse click drag is ...
2
votes
1answer
20 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
16 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 ...
1
vote
2answers
16 views

Including js file in openlayer.js file

I have this code for showing markers on map: function addUserLayerCSV(){ layer1 = new OpenLayers.Layer.Vector("CSV", { projection: epsg6316, strategies: [new ...
3
votes
3answers
42 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 ...
0
votes
1answer
32 views

OpenLayers 3: Query individual features of Tile WMS

I have several tile wms layer with about 5000 earthquakes and I want to query their features by clicking (as in this example: http://openlayers.org/en/v3.1.1/examples/getfeatureinfo-tile.html). That ...
0
votes
1answer
16 views

Photogallery for OpenLayers

me and my collegue are making a web map application for my town for tourism purpose. The map itself is pretty done, actually, so we were wondering whether add some photos of the town, or that shows ...
4
votes
6answers
161 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> ...
0
votes
1answer
87 views

QGIS web client mobile/tablet viewer

I have been looking at OL3-mobile-viewer as an option to make my maps more accessible. Unfortunately I cannot figure out what I need to change to hook it up with my existing QGIS server and ...