On Apr 7, 1:03 am, lukas <[email protected]> wrote:
> <script type="text/javascript">
> function initialize() {
> if (GBrowserIsCompatible()) {
> var map = new GMap2(document.getElementById("map_canvas"), {size: new
> GSize(520,300)});
> map.setCenter(new GLatLng(35.96644277304715, -78.95000696182251), 16);
> map.openInfoWindow(map.getCenter(),document.createTextNode("Business
> address"));
> map.setUIToDefault();
> }
> }
> </script>
>
> Does anybody notice a problem in my code so that the map won't show up
> on Google Chrome? Thanks for your input!
I had a similar problem yesterday and with Chrome as well.
Make sure you're initial script source tag is within the head element,
Also validating the html to make sure there are no errors helps to get
rid of potential problems.
That's the best we can help you at this point without actually seeing
what you did there.
Good luck
Nick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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
-~----------~----~----~----~------~----~------~--~---