Advertisement
Guest User

Untitled

a guest
Oct 30th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var points1 = [];
  2. for ( var i = 0; i < obj_to_push.length; i++ )
  3. {
  4.     var latlngs = new L.latLng(obj_to_push[i].lat, obj_to_push[i].lng);
  5.     points1.push(latlngs);
  6. }
  7. polyline = new L.Polyline(points1, {
  8.     weight:         5,
  9.     opacity:        0.8,
  10.     smoothFactor:   1,
  11.     color:          Rotas.cores(leg.mode)
  12. })
  13. .bindPopup(Rotas.info_popup(leg), { 'minWidth': 400 })
  14. .addTo(map)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement