Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. google.maps.event.addDomListener(window, 'load', function(){
  2.  
  3. $('.igor_s_map').show();
  4. if($('.igor_s_map').length>0){
  5.  
  6. var mapInstance =[];
  7. var instanceCounter=1
  8.  
  9. $('.igor_s_map-canvas').each(function(){
  10.  
  11. $(this).attr('id','igor_s_map-canvas-'+instanceCounter)
  12.  
  13. if($(this).parent().find('.igor_s_map-option-wrapper').length>0){
  14.  
  15. $(this).parent().find('.igor_s_map-option-wrapper').attr('id','igor_s_map-option-'+instanceCounter)
  16. }
  17.  
  18. mapInstance[instanceCounter]= new igor_s_map()
  19. mapInstance[instanceCounter].initialize(instanceCounter)
  20. instanceCounter++;
  21.  
  22. })
  23.  
  24. }
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement