demo ##example var p1 = [[103.96203476539,30.73992311664],[103.96213785625945, 30.739684501136967],[103.96209673532,30.73980937962],[103.96208759218746, 30.739811116021762],[103.9620969208462, 30.739810522099],[103.96210521298727, 30.73981081906037],[103.96209864837557, 30.739654122312533],[103.96199833650218, 30.740024730002123],[103.96195042635367, 30.73994752018434],[103.96204025788211, 30.739750634868994],[103.96206121857207, 30.739860015649427],[103.96202540112932, 30.739883277609312],[103.96195213028,30.73985653109],[103.96209265960702, 30.739789239864486],[103.96210014556772, 30.73976350320253], [103.96202079438427, 30.739643827634154]] var map = new R.map('main',[103.9620178,30.739842],12) var geo = new R.loadMap('./test.geojson') geo.load().addTo(map)
var marker = new R.Marker()
marker.setIcon('./images/marker-icon.png').setCoordinates(p1)
marker.addTo(map)
var heatmap = new R.heatmap()
heatmap.setCoordinates(p1)
heatmap.addTo(map)