Guest User

Untitled

a guest
Nov 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. stComerciaisLayer = L.geoJSON(setoresComerciais, {
  2. style: function (feature) {
  3. return feature.properties && feature.properties.style;
  4. },
  5.  
  6. $("#txtSearch").autocomplete({
  7. source: setoresComerciais.features.map(function(d){
  8. return d.properties.sco_num_sc + " - " + d.properties.sco_dsc_loc
  9. }),
  10. select: function(event, ui){
  11. map.fitBounds(stComerciaisLayer.getBounds(ui.item.value));
  12. }
  13. });
Add Comment
Please, Sign In to add comment