Maplat vs Stroly
by kochizufan
HTML
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css">
<link rel="stylesheet" href="https://code4nara.github.io/Maplat/css/ol.css">
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"></script>
<script src="https://m.stroly.com/a/js/app-built.js"></script>
<script src="https://code4nara.github.io/Maplat/dist/maplat.js"></script>
<div id="map_div"></div>
CSS
#map_div {
height: 1500px;
width: 1500px;
}
JavaScript
requirejs(['histmap', 'tin'], function(ol, Tin) {
var height = 8424;
var width = 11989;
var num = 50;
var points =[
[
[
8828,
3154
],
[
264986.873479067,
6250052.76702248
]
],
[
[
4712,
5770
],
[
258775.767766614,
6249521.88797447
]
],
[
[
5072,
6096
],
[
259039.117215627,
6248950.40175518
]
],
[
[
6627,
5475
],
[
261170.993707644,
6248802.30501287
]
],
[
[
5857,
5673
],
[
260174.923682803,
6248922.93219814
]
],
[
[
6164,
7372
],
[
259644.641799075,
6246770.75212049
]
],
[
[
7678,
7286
],
[
261547.804370518,
6245990.85556626
]
],
[
[
4801,
2259
],
[
260747.604230658,
6253516.91703094
]
],
[
[
3831,
2442
],
[
259574.176413624,
6253923.58590799
]
],
[
[
2565,
4109
],
[
257160.438379806,
6252656.40329845
]
],
[
[
3311,
6366
],
[
256711.37083863,
6249585.7845528
]
],
[
[
3316,
5068
],
[
257492.46172142,
6251131.24571844
]
],
[
[
8142,
2694
],
[
264479.283838112,
6251044.05973305
]
],
[
[
8139,
3431
],
[
263987.817632809,
6250182.94883627
]
],
[
[
7314,
1450
],
[
264152.037810766,
6252928.7102117
]
],
[
...