Reimers.dk

.NET, AJAX and Google APIs brought together
Welcome to Reimers.dk Sign in | Join | Help
in Search

No client side map objects accessible after a callback

Last post 02-03-2010, 22:04 by jjrdk. 2 replies.
Sort Posts: Previous Next
  •  02-02-2010, 16:49 2985

    No client side map objects accessible after a callback

    I have renamed this post as it is not specific to the GEvent.trigger event I was trying to fire.

    It would seem that no overlay objects are accessible in any javascript functions on the .aspx page after any kind of call back.

    Someone must have hit a similar problem? 

  •  02-02-2010, 19:49 2986 in reply to 2985

    More info

    Ok, finally, an explanation but no cure.

    If I do not clear the overlays then this works ok, so this is something defintely to do with clearing the overlay. Not quite sure what though?

  •  02-03-2010, 22:04 2987 in reply to 2986

    Re: More info

    I think you will need to explain in a little more detail.

    You can access any overlay currently on the client by checking reimers.map.[mapID].Overlays. This is the array that holds the overlays. Each overlay has an ID property. This ID is not the same as the serverside ID. It is a specially generated clientside ID, which you can get by calling the ClientSideID(Map) on the server.

    If you are using Firebug you can see the array in your DOM inspector. Here you should see all the overlays managed by the control.

View as RSS news feed in XML