score:1

i should not manualy add the SVG layer. Leaflet have its own function for adding svg layer

this is my final code

MapLeaflet.prototype.init = function (map) {
  let $$ = this;
  $$.dom = map;
  this.map = L.map(map).setView([-6.175239, 106.827204], 13);
  L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png').addTo($$.map);

  var svgLayer = L.svg();
  svgLayer.addTo(this.map);
  this.svg = d3.select('svg g');
}

Related Query

More Query from same tag