HERE マップを Leaflet に追加しようとしていますが、結果は次のようになります。
私のJavaScriptコードは次のとおりです。
var defaultPoint = {
lat : 44.6478300,
lon : 10.9253900
};
function initMapLeaflet(apiKey, json) {
try {
map.remove();
} catch (Exception) {
}
var coords = JSON.parse(json);
var center;
if (coords.lat != null && coords.lon != null) {
center = coords;
} else {
center = defaultPoint;
}
map = L.map({$DIV_ID}, {
center : [ center.lat, center.lon ],
zoom : 10,
layers : [ L.tileLayer('https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8?apiKey=' + apiKey) ],
zoomControl : true
});
map.attributionControl.addAttribution('© HERE 2019');
}
URL経由で全世界を復元しようとしましたが、唯一の違いは繰り返された画像の内容でした.
拡大/縮小とドラッグは正しく機能しますが、前のイベントの最後に<div>、同じ繰り返し画像が再び表示されます。
