This was not a problem in v2 but in v3, it will not display the map if
this part of the html:

 <div id="map_canvas" style="width: 100%; height: 100%">
 </div>

is within a form tag. I have tested this in a standalone .aspx page as
well, like this:

does not work:

 <form id="form1" runat="server">
  <asp:TextBox ID="txtDeparture" runat="server" />
  <asp:Button ID="btnCalc" runat="server" Text="Find directions" />
 <div id="map_canvas" style="width: 100%; height: 100%">
 </div>
</form>

and this does:

 <form id="form1" runat="server">
  <asp:TextBox ID="txtDeparture" runat="server" />
  <asp:Button ID="btnCalc" runat="server" Text="Find directions" />
 </form>
<div id="map_canvas" style="width: 100%; height: 100%">
 </div>

Now, since I can't avoid having a form tag in my MasterPage and the
map_canvas div is within my Content Page, how can I get it to work?
Any workaround to this or is it a major oversight?

Appreciate any input please.

Thanks.


-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to