Guest User

Untitled

a guest
Apr 27th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. var boroughs = L.geoJson(null, {
  2. style: function (feature) {
  3. return {
  4. color: "black",
  5. fill: false,
  6. opacity: 1,
  7. };
  8. },
  9. onEachFeature: function(feature, layer) {
  10. layer.bindTooltip(feature.properties.KECAMATAN, {
  11. sticky: true
  12. });
  13. boroughSearch.push({
  14. name: layer.feature.properties.KECAMATAN,
  15. source: "Boroughs",
  16. id: layer.feature.properties.KODEKEC,
  17. bounds: layer.getBounds()
  18. });
  19. }
  20. });
  21. $.getJSON("data/kec.geojson", function (data) {
  22. boroughs.addData(data);
  23. });
Add Comment
Please, Sign In to add comment