Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stComerciaisLayer = L.geoJSON(setoresComerciais, {
- style: function (feature) {
- return feature.properties && feature.properties.style;
- },
- $("#txtSearch").autocomplete({
- source: setoresComerciais.features.map(function(d){
- return d.properties.sco_num_sc + " - " + d.properties.sco_dsc_loc
- }),
- select: function(event, ui){
- map.fitBounds(stComerciaisLayer.getBounds(ui.item.value));
- }
- });
Add Comment
Please, Sign In to add comment