Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var boroughs = L.geoJson(null, {
- style: function (feature) {
- return {
- color: "black",
- fill: false,
- opacity: 1,
- };
- },
- onEachFeature: function(feature, layer) {
- layer.bindTooltip(feature.properties.KECAMATAN, {
- sticky: true
- });
- boroughSearch.push({
- name: layer.feature.properties.KECAMATAN,
- source: "Boroughs",
- id: layer.feature.properties.KODEKEC,
- bounds: layer.getBounds()
- });
- }
- });
- $.getJSON("data/kec.geojson", function (data) {
- boroughs.addData(data);
- });
Add Comment
Please, Sign In to add comment