Guest User

Untitled

a guest
Apr 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. function addMarkers() {
  2. if (mArray.length) {
  3. var bounds = new GLatLngBounds();
  4. for (n=0 ; n < mArray.length ; n++ ) {
  5. var mData = mArray[n].split(';');
  6. var point = new GLatLng(mData[0],mData[1]);
  7. bounds.extend(point);
  8. var marker = createMarker(point, mData[2],mData[3],mData[4],mData[5]);
  9. map.addOverlay(marker);
  10. }
  11. map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
  12. }
  13. }
Add Comment
Please, Sign In to add comment