5

Here I have a code:

<script>

$(function() {
    $( "#photo" ).resizable();
  $( "#photo" ).draggable({revert: 'invalid'});
    $( "#left" ).droppable({
      accept: '#photo',
      drop: function( event, ui ) {
        $( this )
          .find( "p" )
            .html( "Dropped!" );
      }
    });
  });    
    </script>

and this code I must run after full loading google maps, so I need to "hook up" tilesloaded event for this code.

http://jsbin.com/ayugun/7/edit

But how to do that?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Mark West
  • 269
  • 2
  • 5
  • 17

1 Answers1

13

Here is the code

google.maps.event.addListener(map, 'tilesloaded', function() {
  doWhatYouWant();
});
Premshankar Tiwari
  • 3,006
  • 3
  • 24
  • 30