Skip to main content

All Questions

9 votes
2 answers
10k views

Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library

When online access to the internet is not possible, I would like the (offline) HTML5 app show an OSM map via an OSM file. Can you give an example of how I can show in an offline Html5 app OSM tiles ...
tm1701's user avatar
  • 7,323
2 votes
2 answers
2k views

R leaflet - cannot export map

I plot a route on a map using R and leaflet : ct <- read.csv("fl1.csv", stringsAsFactors=FALSE) m <- leaflet(ct, incl.data=TRUE) %>% addTiles() m %>% addPolylines(~longitude, ~latitude, ...
erculeo's user avatar
  • 31
2 votes
1 answer
547 views

How to troubleshoot missing OSM tiles in leaflet html widget?

I need to create a web page that includes an interactive map where users can see popup information about data collected at many locations. Using Rstudio and leaflet on Windows, wanting to use OSM base ...
jules's user avatar
  • 76
2 votes
1 answer
1k views

leaflet marker not displaying in certain contexts

I am using the leaflet htmlwidget implementation to draw a web-based map using R. I was looking for a specific marker, couldn't find it, and realized it wasn't being displayed at all. However, when I ...
peopletrees's user avatar
0 votes
1 answer
334 views

Create an interactive map leaflet-ajax

In order to create an interactive map consisting of several layers I use the plugin leaflet-ajax with downloading of the files. geojson. When you direct at the object of the layer, the attribute ...
dimaolin's user avatar
3 votes
2 answers
3k views

change custom Leaflet markers in html

I am beginner in development of web maps and leaflet... I found a simple but useful code for me and i want to know how to exchange all leaflet markers in the HTML code below with mylocal.png (or .svg)....
mihai.b's user avatar
  • 31
0 votes
1 answer
461 views

Leaflet Map not appears at all

Index.html <!DOCTYPE html> <title>BookSmart</title> <link rel="stylesheet" href="css/style.css"/> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-...
Koez Zoro's user avatar
-2 votes
1 answer
2k views

How to use local tiles for map

I am using mapbox with openstreet map to create my map. but i want to put the tiles locally. thus reducing traffic and the time taken to load the map. i am using Mobile atlas creator MOBAC to get the ...
jaafar Nasrallah's user avatar
5 votes
1 answer
2k views

How to use leaflet slider along with markercluster in Javascript?

i am making a map that uses a slider to show or hide markers, and i want to add clustering functionality, each one alone works perfectly, but i want the slider to show the markers, and in case of ...
jaafar Nasrallah's user avatar
0 votes
1 answer
919 views

How to convert path with coordinates of nodes to <path> tag with points

This my first time programming web application with maps. I am working with Java servlets, Netbeans IDE, javascript, html and css. I created algorithm that creates paths from a given Graph (*osm file) ...
E235's user avatar
  • 12.9k
4 votes
1 answer
1k views

Leaflet.js: Allow default drag/zoom options with HTML elements on top of map DIV

I'm using some javascript/css to 'draw' my own DIV and IMG elements on top of a Leaflet controlled map. I've managed to synchronise the pan and zoom movements so it looks like my own elements are ...
Deceti's user avatar
  • 51
0 votes
1 answer
2k views

Set view for an array of addresses(no coordinates) using leaflet js

I don't have latitude and longitude coordinates to set view on leaflet js library. I had an array of objects which contains city and state, country as properties.Now i want to set the markers on the ...
Siva's user avatar
  • 1
0 votes
1 answer
3k views

Add border layer to offline map using leaflet

I have made offline map using leaflet and tiles. These tiles does not contain countries border or state border. I want to add all countries border as well as state border into these tiles. Here is the ...
prtk's user avatar
  • 23
6 votes
2 answers
9k views

Leaflet OSM: Center mapview on polygon

I want generate a html file including Leaflet library to show an OpenStreetMap view with a polygon. The polygon on the map should be centered. To do so i followed this discussion, but its still ...
alex's user avatar
  • 5,606
3 votes
1 answer
317 views

Excluding map tiles from appcache

I am trying to implement offline use through appcache with the site corvallistrails.org. All of the images and resources that I am hosting cache perfectly, but when I attempt to use the site the map ...
user2669459's user avatar

15 30 50 per page