 			log "javascript not yet loaded"
 		else
 			# Tile version
-			window.map = L.map('OpenStreetMap', {center: [52.249822176849, 6.8396973609924], zoom: 13, zoomControl:false, updateWhenIdle:false, detectRetina:true, reuseTiles: true, minZoom: 3, maxZoom: 20})
+			maxZoom = 18
+			if Plugin.agent().android? or Plugin.agent().ios?
+				maxZoom = 17
+			window.map = L.map('OpenStreetMap', {center: [52.249822176849, 6.8396973609924], zoom: 13, zoomControl:false, updateWhenIdle:false, detectRetina:true, reuseTiles: true, minZoom: 3, maxZoom: maxZoom})
 
 			# Default OpenStreetMap tiles: maxZoom = 21
+			###
 			L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
 				attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
 				detectRetina: true
 			}).addTo(map);
+			###
+			
 			# CartoDB dark tiles: maxZoom = 18
 			###
 			L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png', {

				-webkit-filter: contrast(110%) brightness(200%);
			}
			###
			log "Initialized MapBox map"
			limitToBounds()
			map.on('moveend', saveMapLocation)

loadOpenStreetMap = ->
	log "loadOpenStreetMap()"
	# Only insert these the first time
	if(not document.getElementById("mapboxJavascript")?) or (not (Db.local.peek('newMap6')?))
		if (not (Db.local.peek('newMap6')?))
			if map?
				map.remove()
			window.beaconCurrentLocation = undefined
			window.L = undefined
			window.map = undefined
			Db.local.set('newMap6', 1)
			log 'Refreshing map'
		log "Started loading OpenStreetMap files"
		# Insert CSS
