Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var locations = [
- ['Russ Martin</br>MT,VT, NH, ME (all firms)',46.537711,-111.932769,1],
- ['Carey Fischer</br>NY- Upstate ex Rockland County (BD, FP)',40.714353,-74.005973,2],
- ['Brandon Born</br>CT, NY - Upstate, MA - ex metro Boston (FI), MA - Central, West (all firms)',41.5178234,-72.757507,3],
- ['Joe Tocyloski</br>PA - East, NJ - South (FP)',40.9945928,-77.6046984,4],
- ['Phil Hemery</br>NJ (FI), NJ - Bergen County (all firms), NY - NYC (FI,RIA)/Westchester (FI,BD)/Rockland County (all firms)',40.1430241,-74.7311156,5],
- ['Bob Mancini</br>MA - East (all firms)',42.0629399,-71.718067,6],
- ['Damien Ramondo</br>NJ, PA East',40.1430241,-74.7311156,7],
- ['Kevin Gang</br>W VA,PA - West (all firms), OH - Cleveland (BD, FI)',38.0033854,-79.7715309,8],
- ['Andrew Fischer</br>MI - (all firms)',44.9700413,-86.4158049,9],
- ['David Saslowsky</br>NYC',40.7056308,-73.9780035,10],
- ['Robert Brazofsky</br>NYC',40.7056308,-73.9780035,11],
- ['Joseph Proscia</br>NJ - North ex Bergen County, NY - NYC (FP)',40.1430241,-74.7311156,12],
- ['William Marsalise</br>NY - LI and Outer Boroughs (FI), LI Planners',40.7056308,-73.9780035,13],
- ['Dan Stack</br>OH - Columbus and South (all firms), KY - Covington (all firms)',40.7056308,-73.9780035,14],
- ['James Broderick</br>OH - North of Columbus ex Cleveland (all firms), Cleveland (FP)',40.1903624,-82.6692524,15]
- ];
- var us = new google.maps.LatLng(46.879682,-110.362566);
- var map = new google.maps.Map(document.getElementById('map'), {
- zoom: 4,
- center: us,
- mapTypeControl: false,
- streetViewControl: false,
- panControl: false,
- mapTypeId: google.maps.MapTypeId.ROADMAP
- });
- var infowindow = new google.maps.InfoWindow(),marker, i,markers = new Array();
- for (var i = 0; i < locations.length; i++) {
- var lat = locations[i][1], lang = locations[i][2],floating_point = [i][3];
- marker = new google.maps.Marker({
- /*icon:{
- strokeColor:'green',
- scale:3
- },*/
- position: new google.maps.LatLng(lat,lang),
- map: map,
- animation:google.maps.Animation.DROP,
- zIndex:floating_point
- });
- markers.push(marker);
- google.maps.event.addListener(marker, 'mouseover', (function(marker, i) {
- return function() {
- infowindow.setContent(locations[i][0]);
- infowindow.open(map, marker);
- }
- })(marker, i));
- }
- function AutoCenter() {
- var bounds = new google.maps.LatLngBounds();
- $.each(markers, function (index, marker) {
- bounds.extend(marker.position);
- });
- map.fitBounds(bounds);
- }
- AutoCenter();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement