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

learn more… | top users | synonyms

2
votes
1answer
784 views

Google maps layer as the base layer and WMS as overlays shows empty map

I have a problem of showing my base layer which is Google Maps. The browser console reports "Uncaught TypeError: undefined is not a function" in var google_streets = new ...
0
votes
2answers
168 views

MapServer and OpenLayers: Properly using MAXSCALEDENOM in mapfile (google baselayer)

My base layer: google map My points on the map: from an airports.db file, set up as a WFS layer in the OpenLayers code. As of now: map loads, points in the correct places on the map. My goal: ...
0
votes
1answer
29 views

Draw regularPolygon from left to right in OpenLayers rather than center out

When I draw a Regular Polygon in Open Layers, it draws from the center out (like a circle). I would like it behave more like Handler.Box does (drawing from the UL corner to LR corner.) Is this ...
1
vote
0answers
285 views

How to use SLD to filter a WMS layer but without setting any styles?

I'm trying to filter (using OpenLayers) a WMS layer, served by MapServer. I've got this working by building the appropriate OpenLayers.Filter rule(s) with an empty Polygon symbolizer (so no specific ...
0
votes
2answers
377 views

How to Resolve Inconsistent OpenLayers vector position Over Google map [duplicate]

I have an OpenLayers map with a Google base layer and an OpenLayers vector layer on which people can draw their own bounding boxes using the DrawFeature control. I have found that, as you zoom in, ...
0
votes
0answers
54 views

Popup for polygon's points

i'm working with open-layers, my question is : how i can display popup for polygon's points ? the user can draw a polygon in a vector layer then i want to add popup if the point clicked ,that ...
1
vote
1answer
162 views

how can openlayers have mobile.css file as style [closed]

I try to make openlayers work in mobile devices, so it can go fullscreen. I cannot just put width and height to be 100%. Here is why <div id="content"> //contains map, forms, images etc ...
0
votes
0answers
31 views

OpenLayers Allow Further Zoom Out? [duplicate]

I'm quite new to OpenLayers and much of the documentation is just strings of jargon, so please forgive me if this is a noobish question. I've intialised an OpenLayers map with Google physical and ...
4
votes
1answer
143 views

Does WMS GetFeatureInfo takes into account the applied Style (SLD)?

As the title says, does WMS GetFeatureInfo takes into account the applied style to a layer? For example I have layer of all US States and I applied the following SLD: <PropertyIsEqualTo> ...
1
vote
0answers
92 views

Drawing a Satellites Coverage FootPrint on an OpenLayers Vector Layer

We have been discussing offering at some point in the future satellite footprints on some of the maps we offer. Initially the ISS but some Satellites may be appropriate as well. We have also been ...
0
votes
1answer
269 views

Requesting a JSON format from Geoserver using Openlayers and GeoExt

I am requesting a vector layer from geoserver using WFS request in JSON format. I have this url ...
1
vote
1answer
155 views

Openlayers Vector Event Popup with Textbox

The Openlayers map here: http://www.dassh.ac.uk/demonstrations/valmer/demo5.html has an event to add a vector layer, plus creates a textbox on the page below. Ideally I'd like the click event to add ...
0
votes
1answer
92 views

Get box related info in OpenLayers

I just started to play a little bit around OpenLayers and I am experiencing some issues while trying to let the user draw a bounding box within a map. For this, I looked at this example and tried to ...
-1
votes
1answer
766 views

Retrive data from database in openlayer GIS

i am using this code but it shows nothing, whats wrong with this code. <!DOCTYPE html> <html lang='en'> <?php $conn_string = "host=localhost dbname=postgis_21 user=postgres ...
0
votes
0answers
35 views

how create a dyamic layer in openlayer map

I am using geoserver, Postgis(database) and OpenLayers for map. Now I want to create a layer (WFS, WMS) dynamically. The goal is to allow the user to create any number of layers from front end without ...
3
votes
2answers
977 views

Openlayers using Google Maps as base layer: possible to zoom out farther than max extent?

See attached picture. This is how it is when the page loads. I'm currently using map.zoomToMaxExtent(); Everything is working pretty well but I'd like to zoom out more/see the whole world using ...
0
votes
1answer
81 views

Photos layer in Openlayers

I have some photos. They have GPS information. I want to add they with a layer like markers to Openlayers map. How can i do? Thank You.
2
votes
2answers
218 views

fluid openlayers - responsive design

I am trying to have my openlayers map fit the size of the browser and also resize every time the browser resizes. So I can have responsive design. My structure of code is like so <script ...
2
votes
1answer
300 views

Openlayers zoomToExtent from array of coordinates

I have a dropdown list. On Selection, it will request extent of selected property to database (PostgreSQL). I am using PHP for server-side processing. At client-side on console log gives extent ...
1
vote
2answers
46 views

Remember selected items on server round trip

Stack: GeoServer, GeoExt, PostGIS, etc etc (all the standard stuff). I have a map displayed in my browser and performing a box select adds relevant items to my selection vector layer. In addition to ...
0
votes
2answers
322 views

set the z-index of an openlayers map

I have an openlayers map and I try to implement a "lightbox" image gallery , in the same page. By ""lightbox" image gallery" I mean that the images/arrows/exit button cover the whole screen. The ...
1
vote
2answers
91 views

How to implement predefined attribute filters in an Openlayers web map? [closed]

I imagine this situation: I've got relatively big point layer and I want to split(filter) the points to predefined selections. Predefined selection would be based on the attribute(for example ...
6
votes
3answers
749 views

Advantages of WFS over GeoJSON/KML?

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines on top of an OSM map in several layers. Those points ...
0
votes
1answer
274 views

Retrieve WMS service from GeoWebCache with OpenLayers

Ok guys, here we go ! For my needs, I basically added a standalone version of GeoWebCache. After some configuration, the GeoWebCache retrieve the data from GeoServer using Capabilities. Now, in my ...
3
votes
2answers
84 views

Mixing coodinate systems

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines in an area of ~10x10 kilometers in several layers. ...
0
votes
0answers
71 views

Openlayers WFS and Mapfile: Possible to specify multiple online resources and generic URL/variables in OpenLayers file?

I have a working mapfile with an associated working OpenLayers file. The mapfile has a wfs_onlineresource like so: "http://one_of_my_servers:8190/cgi-bin/mapserv.exe?" Then in the OpenLayers ...
0
votes
1answer
248 views

Openlayers FramedCloud popup appears in the wrong location

I have an application that is using OpenLayers 2.13.1. It is utilizing a bing basemap and overlaying WMS layers. I am using a FramedCloud popup. I would like the popup to appear where the user clicked ...
5
votes
2answers
112 views

Following path in OpenStreetMap

I want to visualize a road present in the OpenStreetMap. Using OpenLayers, I try to do in the following way: Take a set of co-ordinates which should represent the two sides of the road. Join both ...
0
votes
0answers
858 views

D3 adding topojson - no data visible

Yesterday I asked what would be the best method of creating an overlay in a web map that would allow for some interactivity. Create interactive map with no server Thanks to a variety of people who ...
0
votes
0answers
17 views

Openlayers Issue seeing Raster Images on both sides of the dateline

I am using OpenLayers V2.13.1 and I am displaying Raster Layers on both sides of the date line When I zoom Out, I cannot see raster Images on both sides of the date line, if I pan across the date ...
1
vote
2answers
167 views

getting data into geoserver from two columns to form a point

I have a problem on how I am able to retrieve a geometry data from postgres using geoserver. I am new to this. The latitude and longitude are on separate columns. So I'm trying to figure this out by ...
1
vote
1answer
294 views

Openlayers Vector Layers eventListeners: how to specify different data without defining multiple layers

I have a map. It has two origins, and two destinations. The code for one origin is here: vectors_origin = new OpenLayers.Layer.Vector("Origin", { eventListeners:{ ...
7
votes
3answers
406 views

Create interactive map with no server

I have managed to build a great web mapping application using tiles created from GeoWebCache and a custom gridset, but I now need to add an overlay to the base maps. The only interactivity I need is a ...
0
votes
1answer
427 views

Is there any way to configure MapFish config.yaml from Javascript?

I am using the mapfish print module in my webmapping application.In that I need to have various mapfish print layouts with different background pdf options. For that, am I need to create each ...
0
votes
3answers
155 views

OpenLayers - Introduction tutorial problem

I have just started looking into OpenLayers and I can't seem to even get the example provided to work, I just get a blank screen. Am I missing something really obvious? Here's the html I am trying to ...
0
votes
1answer
104 views

Why openlayers show wrong measures of line from ECW geoserver?

I have loaded the following raster into geoserver and added measurement control. The thing is that the measure gives me wrong result (it shows the car length is 49m) Any idea what can cause this ?! ...
2
votes
1answer
162 views

How I can insert feature attribute after feature drawing complete

I am new to OpenLayers. I am trying to insert wfs feature information to my map after drawing like this. I can draw a WFS feature like (polygon, line, point) on map and after drawing the feature ...
1
vote
1answer
119 views

Openlayers: Making the map move with moving vector layer (airplane) on map

So currently I have a map that has some plane data. There is a setInterval function that updates the plane data every 5 seconds, making the plane move from point to point. That is working well. ...
0
votes
1answer
121 views

jQuery tabs into OpenLayers switcher layers [closed]

How can I put jQuery UI tabs in openlayers layerswitcher? I can not imagine how this can be done ...
1
vote
0answers
18 views

can wms from geoserver serve as utfgrid data? [duplicate]

i'm confused on how to make interactive map displayed. i used geoserver from opengeo suite and then i use openlayers to display the map on my site. I have been able to display the attribute by using ...
0
votes
0answers
165 views

Show live attribute when hover in a map

i'm still new in openlayers. i would like to show "location" attribute on right corner of the map when hover in map. my map consist of of many attributes and one of them is location. how can i ...
3
votes
1answer
213 views

Geoserver WMS v Geowebcache offset?

Having successfully used the new OpenLayers.Layer.GeoWebCache to add a local tile cache created using Geowebcache, I thought I would compare against the same data as a wms from my local GeoServer. ...
0
votes
1answer
150 views

Request data from OpenLayers to a standalone GeoWebCache

I'm actually using OpenLayers and GeoServer to make a GIS application. For the moment, GeoWebCache is directly integrated into GeoServer, but for my future needs, I'll need to have it as a stand ...
3
votes
1answer
977 views

Using local tiles created in Geowebcache with OpenLayers

I am trying to setup an Openlayers page that uses a local tile cache that I have created using Geowebcache. But the HTML page and the tiles will be stored in an Amazon S3 bucket So far I have setup ...
0
votes
2answers
521 views

Openlayers WFS Vector Layer with Popups: how to setCenter on point when you click it?

Working code I have so far is below. Lots of airports on the map, you click an airport icon, the popup appears. No problems there. Goal: to click a popup, and based on the lat/long data of that ...
0
votes
1answer
779 views

Use new OpenLayers.Filter.Logical from OpenLayers into jQuery

I've a small GIS app, displaying stations on a map. Very simple. At start, none of the stations are displayed, even if its layer is enabled. What I want, when I click on a div, is to display one the ...
0
votes
1answer
112 views

WMS render geotiff as a small image

Hye! I am facing Strange problem,My Geoserver 2.2.4 was stop working suddenly so i made a backup of Dir folder and install Geoserver 2.3.5 and replaced workspace folder with new one. Now all ...
1
vote
1answer
166 views

QGIS-server and mapproxy. Management of the transparency of a layer

I have problems using mapproxy with QGIS-server via openlayers (mapproxy-1.6.0, qgis-server 2 and openlayers-2.13.1). I have a layer in which i defined the background of the polygon with ...
0
votes
1answer
219 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
449 views

OpenLayers: Strange Tiling Issue (Checkered, white and grey) when panning around map

So this strange tiling issue is only occuring when moving around the map. Some things to note: 1) You can see the markers, airplane icon, and flight paths. These are all overlays, where the actual ...