new L.OSM.TransportMap().addTo(map);
} else if (args.layer == "mapquest") {
new L.OSM.MapQuestOpen().addTo(map);
+ } else if (args.layer == "hot") {
+ new L.OSM.HOT().addTo(map);
}
if (args.marker) {
code: "Q",
keyid: "mapquest",
name: I18n.t("javascripts.map.base.mapquest")
+ }),
+ new L.OSM.HOT({
+ attribution: copyright + ". Tiles courtesy of <a href='http://hot.openstreetmap.org/' target='_blank'>Humanitarian OpenStreetMap Team</a>",
+ code: "H",
+ keyid: "hot",
+ name: I18n.t("javascripts.map.base.hot")
})
];
}
});
+L.OSM.HOT = L.OSM.TileLayer.extend({
+ options: {
+ url: 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
+ maxZoom: 20,
+ subdomains: 'abc',
+ attribution: "Tiles courtesy of <a href='http://hot.openstreetmap.org/' target='_blank'>Humanitarian OpenStreetMap Team</a>"
+ }
+});
+
L.OSM.DataLayer = L.FeatureGroup.extend({
options: {
areaTags: ['area', 'building', 'leisure', 'tourism', 'ruins', 'historic', 'landuse', 'military', 'natural', 'sport'],