Advertisement
Guest User

Untitled

a guest
Oct 18th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             var carsLayerGroup = L.layerGroup([policecar_NE1, cars_NE1]),
  2.                 postofficesLayerGroup = L.layerGroup([postOffice_NE1]);
  3.                 supermarketsLayerGroup = L.layerGroup([supermarket_NE1]);
  4.                 restaurantsLayerGroup = L.layerGroup([restaurant_NE1]);
  5.                 churchsLayerGroup = L.layerGroup([church_NE1]);
  6.            
  7.             var overlays = {
  8.                 "Cars": carsLayerGroup,
  9.                 "Post Offices": postofficesLayerGroup,
  10.                 "Supermarkets": supermarketsLayerGroup,
  11.                 "Restaurants": restaurantsLayerGroup,
  12.                 "Churchs": churchsLayerGroup
  13.             };
  14.  
  15.             L.control.layers(0, overlays).addTo(map);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement