GEvent.addListener(map, 'tilesloaded', function(){
alert('hi');
customiseLargeMapControl();
});
should be
google.maps.event.addListener(map, 'tilesloaded', function(){
alert('hi');
customiseLargeMapControl();
});
-- Luke
On Wed, Sep 29, 2010 at 2:29 AM, Martin <[email protected]> wrote:
> Try this:
>
> var latlng = new google.maps.LatLng(32.505338, -98.349152);
> var myOptions = {
> zoom: 4,
> center: latlng,
> mapTypeId: google.maps.MapTypeId.SATELLITE,
> navigationControl: true,
> scrollwheel: false,
> navigationControlOptions: {
> style: google.maps.NavigationControlStyle.DEFAULT,
> position: google.maps.ControlPosition.RIGHT
> };
> var map = new
> google.maps.Map(document.getElementById("map_canvas"),
> myOptions);
>
> GEvent.addListener(map, 'tilesloaded', function(){
> alert('hi');
> customiseLargeMapControl();
> });
>
>
> http://code.google.com/apis/maps/documentation/javascript/reference.html#event
>
> You might also look at the Map 'idle' event but i don't think it will
> do what you want.
> The tilesloaded event apparently fires once all the map tiles have
> been retrieved from the server but BEFORE they have been rendered on
> the map.
>
> Martin.
>
>
> On 28 Sep, 14:06, jimmyt1988 <[email protected]> wrote:
> > Hi all,
> >
> > I need to do a function after the google maps controls have loaded...
> > I found tilesloaded but am unsure of how to implement it. Basically
> > looking for a callback of when google maps scripts have finished doing
> > their jazz.
> >
> > var latlng = new google.maps.LatLng(32.505338, -98.349152);
> > var myOptions = {
> > zoom: 4,
> > center: latlng,
> > mapTypeId: google.maps.MapTypeId.SATELLITE,
> > navigationControl: true,
> > scrollwheel: false,
> > navigationControlOptions: {
> > style: google.maps.NavigationControlStyle.DEFAULT,
> > position: google.maps.ControlPosition.RIGHT
> > },
> > tilesloaded : function(){
> > alert("hi");
> > customiseLargeMapControl();
> > }
> > };
> > var map = new
> > google.maps.Map(document.getElementById("map_canvas"),
> > myOptions);
> >
> > Any tips?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.