Leaflet Map with search function for roleplayers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Elektroll 2c50f25a31 'README.md' ändern 3 years ago
img first commit 3 years ago
src first commit 3 years ago
README.md 'README.md' ändern 3 years ago
index.html first commit 3 years ago

README.md

Fantasy Map

Demo: http://etroll.crux.uberspace.de/map/

This is a simple map created with leaflet + leaflet-search + jQuery.

To change the map background, replace img/map.jpg.

Set in src/map.js in line 20 the resolution of your imagefile.

	var bounds = [xy(0, 0), xy(2480, 1754)];

Markers are set in src/poi.js just add a new line behind var data = [ with:

	{"loc":[y,x], "title":"Cityname"},

Replace y with the Y coordinates of your image and do the same with x. Replace Cityname with the Name of the place.