1
vote
2answers
65 views

OpenLayers vs Leaflet for specific app

Could anybody give me some advice on which one should I use? OpenLayers or Leaflet I will implement OSM on a web-app for taxi management. The requirements for the map part are: Tracking of the ...
0
votes
2answers
21 views

add a vector point on OSM map

I have managed to show Lat and Lon function init() { navigator.geolocation.getCurrentPosition(function(position) { document.getElementById('myloc').innerHTML="Latitude: " + ...
0
votes
0answers
19 views

OpenLayers what is the last event when everything is rendered?

I have a Openlayers map with an OSM layer and a KML layer. The KML is added by parsing some text from using OpenLayers.Format.KML (so no "loadend" event seems to fire). What is the last event that ...
0
votes
1answer
43 views

How to create a map with OSM and webatlas.de's WMS layer?

I spent hours trying to figure out the following problem, I hope someone can help me. You can see here that this WMS has different Projections available: ...
0
votes
0answers
15 views

OpenLayers popup control doesn't work after selecting another control

I have created an application using OpenLayers which by default includes the navigation control and the draw feature control. These controls are selected using a control bar similar to the one shown ...
0
votes
1answer
69 views

openlayers python proxy.cgi script is not taking parameters

I have setup the python proxy.cgi in cgi-bin folder in my server. [myserver]/cgi-bin/proxy.cgi returns the openlayers website [myserver]/cgi-bin/proxy.cgi?url=www.openlayers.org returns list index ...
0
votes
1answer
33 views

How to convert osm way xml to openlayers feature?

I am displaying the osm data through a popup with openlayers. For now i am using the overpass api to get data. But my app needs to reflect the rapidly changing data i.e. one changes the data then ...
2
votes
0answers
41 views

Problems printing OpenLayers Pluggin Maps To Scale

It the print composer I can print all maps to scale and satisfactory. However, when I add the OpenLayer, usually Bing Aerial, to the project I cannot print it out to scale. I click the scale box, ...
0
votes
0answers
22 views

Using OpenLayers maxExtent on small OSM tile overlay [duplicate]

I have a small subset of OSM tiles over Australia that I want to overlay on top of my OSM tiles for the planet. If I just add them normally, I get pink tiles outside the extent of the OSM overlay. If ...
0
votes
0answers
51 views

Move OpenLayers.Popup up to 10 pixel and left 15 pixel?

good afternoon, I have a popup that is in the map and I want only move 10 pixels high and 15 pixels to the left, the problem is that when you change its position in latitude and longitude, is in ...
1
vote
0answers
30 views

Shows Netherlands region on map on every zoom level not other region in Open Street Maps

I want to show/display only Netherland region on Openstreet map, dont want to show other region on maps. Same thing apply for zoom in or zoom out also. I have tried with applying bounds but does not ...
2
votes
1answer
75 views

purpose of maxExtent?

I am starting with maps but im a beginner. The answer is probably easy, but i could not find it anywhere. I cannot figure out why to use maxExtent. If I delete it from my application, its behavior ...
1
vote
1answer
78 views

OpenLayers OSM layer

I need to define an layer in OpenLayers just showing world map. The most simpliest variant is to create OSM layer. When I do like this: var layer = new OpenLayers.Layer.OSM("OSM"); ...
2
votes
2answers
58 views

How to make corners of openlayers with OSM map rounded?

I'm trying to apply style with border-radius:XXpx to my openlayers map: map = new OpenLayers.Map(name) map.addLayer(new OpenLayers.Layer.OSM()) But rounded corners are hidden by tiles of the map: ...
1
vote
0answers
12 views

How to access the timestamp value from Overpass meta requests with Openlayers.Format.OSM?

I am using Overpass-api to request data, then display it in an interactive webpage using Openlayers. When user clicks on some feature, the information is shown in popup. As of now, the page is ...
1
vote
1answer
104 views

How to request a limited no of features in Overpass api?

I am using Overpass api to query Building data from OpenStreetMap. the query string is like this (way[building](bbox);node(w););out body; This works really fine (the bounding box is specified by ...
1
vote
0answers
53 views

django + apache mod_tile

I'm not sure if I'm doing this right and I need your opinion on this current situation. I'm creating a Web Interface using django and postgres as the database. With regards to the slippy map, I went ...
0
votes
1answer
113 views

How to query osm data served by geoserver?

We have a specific point and would like to count all features in a circular area with center at that specific point. The data is: - Stored in a shapefile layer created in QGIS - Served by geoserver - ...
2
votes
1answer
242 views

How to use a sld file with Openlayers using OSM data?

My app, made with openlayers, displays building data called from overpass api. var data_url = "http://overpass-api.de/api/interpreter?data=(way[building](bbox);node(w););out body;"; //main working ...
2
votes
1answer
169 views

Clustering not working on features in OpenLayers

I've built a mapping solution using OpenLayers that works well except I can't get the points to cluster. I've looked at the examples on the site, and I've even implemented those examples in my ...
1
vote
0answers
77 views

Keep Getting Black OSM Tiles in Openlayers

When trying to view OSM tiles using the external storage example of OpenLayers, I keep getting black tiles when I zoom in and out. I don't know what the issue is but every time I zoom in/out there ...
3
votes
0answers
129 views

OpenStreetMap Tiles Not Loading in Firefox 17.0.1 - Pink Background [closed]

I recently ran into an issue where only a pink background is displayed in the openstreetmap on my webpage (tiles are not displaying). I found this topic OpenStreetMap tiles not loaded despite being ...
0
votes
2answers
151 views

Using OpenLayers with OSM as map

Got this code from a teacher and I don't know what I am doing wrong! I have searched around but I can't find the error. Visual Basic shows no error. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
3
votes
1answer
140 views

OpenLayers OSM tile boundary

I have a local tile source of OSM tiles. I'd like to show the tile zoom, x, y on the tile so that I can optimize and create small offline groups of tile for specific areas(polygons). I can get the ...
5
votes
1answer
299 views

OpenLayers XYZ Unable to Load Local Tiles

I have some local tiles that were generated from OpenStreetMaps using Maperitive. I've tried going through the docs and tests but the map is not loading. I'm not getting any errors in chrome's js ...
1
vote
0answers
28 views

Is it possible to have transition between switching base layers

I use OpenLayers to display several maps. While transitioning between Google Map layers, the new layer is superimposed onto the old one. But for OpenStreetMaps, there is this empty void in between ...
2
votes
1answer
61 views

Filter by specific amenity in OSM

I'm new to maps, and have been searching for the past couple of hours how to get started with OpenStreetMaps without much success. What I would like is a spreadsheet with the coordinates, names and ...
2
votes
2answers
289 views

How to make zooming for OpenStreetMap in OpenLayers more sensitive to mouse wheel scrolling?

I have been testing OpenLayers for a while and I notice that the scrolling on OpenStreetMap layer does not make the map zoom in or out as much as I would like it to be. On most occasions, I am only ...
3
votes
1answer
238 views

OpenStreetMap tiles not loaded despite being received

While using OpenLayers to load OpenStreetMap, I observe that part of the map would sometimes be covered with blank pink tiles. I searched and found similar complaints with solutions suggesting the ...
5
votes
2answers
357 views

How to create a simple drop down box in openlayers?

I am trying to place a simple drop down box above the open street maps. Can some one guide me how to achieve this... I know we need to make use of open layers.... i tried to create a button with below ...
3
votes
1answer
184 views

Limit Zooming Geometry Features in OpenLayers

I draw flag feature on my map as follows: myVectorLayer = new OpenLayers.Layer.Vector("Flag Geometry", { renderers: renderer, isBaseLayer: true, projection: new OpenLayers.Projection("EPSG:900913"), ...
1
vote
1answer
118 views

How to get map to parse input bounds as degrees?

I just started to learn Open Map and I am having some difficulty working with the API. This may look trivial, but please bear with me. I am trying to get Open Map to display a region of the map ...
4
votes
1answer
1k views

Openlayers display a markers popup using a button out of the map

I have the following code which addes 3 markers to the map along with there popup boxes what I want to do is have a list of location at bottom of page and using the id of the marker when click a place ...
2
votes
0answers
217 views

Openlayers 2.12 + Firefox 15 = OSM Layer not showing

I know it's due to the new Access-Control-Allow-Origin in OL 2.12, but it is still not functional to me. I've followed instructions on here on stackoverflow. Firefox version 15.0.1 Apache2 config ...
0
votes
0answers
215 views

Draw route using open Layers [closed]

I have several waypoints in my database and I want to draw a route. How can I do this using open Layers I am very new to javascript. A tutorial will be great if you can help. Thanks
1
vote
0answers
162 views

Get tile URL with projection different than 900913

I have the following code, which should display a slippy map showing tiles producted by me with mapnik: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 ...
0
votes
0answers
215 views

XYZ map doesn't calculate the correct tile URL

I have the following code: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
1
vote
1answer
229 views

OSM Map projection doesn't seem to change

I have the following OpenLayers map: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
1
vote
0answers
241 views

Vector layer shifted on OSM map: why?

I've defined the following map: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
2
votes
1answer
310 views

Problems using 2 maps with multiple layers and loadend event

I have 2 or more maps with one ore n layers on each map. Now I want zoom to extent for each map, but the getDataExtent returns only for the last layer in the last map a bounds. Can you help me? Here ...
2
votes
2answers
413 views

How to render a multi-layered (raster + vector) map to a file (PDF, SVG or JPEG, PNG)?

When using OpenLayers I can compose a map with several layers which is displayed nicely by my browser, but I need to do the same server side (no browser composing the layers), and I'm waiting a image ...
2
votes
2answers
659 views

Openlayers: How to highlight a point on mouse over a line

Any suggestions on how to highlight a point on mouse over a line, I've read points from a javascript array, lines are drawn by using them and I want to highlight some points in that array by moving ...
0
votes
3answers
477 views

OpenLayers: Error message 404 (Not Found)

I've created a map using openlayers contains osm, google layers and some vector features, On loading it shows two errors like: GET http://tile.openstreetmap.org/0/0/1.png 404 (Not Found). How to ...
1
vote
1answer
446 views

How to skip drag event to stop a feature being dragged

I am new to OpenLayers and I'm trying to drag markers and skip some markers from being dragged, I've tried dragFeature.deactivate(); it will deactivate entire features please help me. Please check ...
1
vote
1answer
589 views

OpenLayers : How to make a marker fixed [duplicate]

Possible Duplicate: How to skip drag event to stop a feature being dragged I've created a map and added markers to baselayer on click by using this code : vectorLayer = new ...
1
vote
2answers
680 views

OpenLayers WMS disappears when including OpenStreetMap

Setup: ArcSDE 9.3.2 Oracle 11g GeoServer 2.1.4 OpenLayers (latest build) OpenStreetMap InternetExplorer 7.0/ Google Chrome EDIT: I have updated information just below the screen shots ...
1
vote
1answer
236 views

Loading features incrementally in a vector layer

I am new to OpenLayers. In one experiment I am doing I want to load, incrementally, features in a vector layer. In my setting, these features should be loaded from distinct OSM files (generated ...
2
votes
1answer
581 views

Unable to see whole world map by decreasing panzoom bar?

I am seeing one weird thing in Openlayers today. I am unable to see whole map by using panzoombar, previously i used to. <html> <head> <title>OpenLayers Example</title> ...
2
votes
3answers
742 views

Change zIndex of Vectors in openlayers

I have a bunch of linestring features on a vector layer. Some of them overlap. If I trigger the hover event on those features, I want them be in front. I did find some functions to set the z-index of ...
1
vote
1answer
301 views

openlayers trigger hover event

I have a bunch of tracks on screen in a vector layer. I used some hover and select styles in the layer styleMap and these styles are properly triggered by: var highlightCtrl = new ...

1 2