LoginSignup
0
0

More than 3 years have passed since last update.

leafletを鍛える。その17

Last updated at Posted at 2018-11-04

概要

leafletを鍛えてみた。
マーカーをアニメーションしてみた。

写真

サンプルコード

var map = L.map('map').setView([37.913961, 140.142267], 17);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
    attribution: 'OSM'
}).addTo(map);
var line = L.polyline([[37.913961, 140.142267], [37.913961, 140.142267], [37.913106, 140.142664], [37.912716, 140.141612]]);
map.addLayer(line);
var animatedMarker = L.animatedMarker(line.getLatLngs());
map.addLayer(animatedMarker);

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0