On Feb 11, 4:57 am, Anirudha <[email protected]> wrote: > > I want to display google maps for all instances of the user control > For ex when user control is used 4 times,4 maps should be displayed
This is an ASP question, not a Maps question. When your control reaches the browser, it creates a <div> element with id="map_canvas". You can only have one of those per page. If each control creates a <div> element with the same, id, you will only get one map. In addition, you can only have one Javascript function called "initialize". Only one will be run. Every element id and function name must be unique. One solution would be to have your control generate a unique number for each insertion, and use that to name the map <div> and its corresponding initialize function: <div id="map_canvas_01">; function initialize_01() -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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-api?hl=en.
