Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Google-Maps
Hi,
I try to use Google map 'Hello World' in an asp application, but there is a problem
when i delete DOCTYPE every thing is fine but when i have, that doesn't show any map
 
i used the both below DOCTYPEs but none of them works for me, do you have any idea?
 
<!DOCTYPE html>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
Posted 14-Nov-12 20:19pm
Comments
jkirkerx at 15-Nov-12 1:37am
   
You would have to post the whole header with script, it's not the doc type
Christ_88 at 15-Nov-12 1:43am
   
so what should i do ?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

post the script part of the header, and the some of the map script, so we can see what you did wrong.
 
Did you load the draw map in the body tag, onload event?
 
The page, or DOM has to be ready, and the draw map has to load, in order for the map to display. So either the DOM is not ready, or your not loading the function.
 
It's 11pm here, i'm out to sleep.
 
<script>
  function initialize() {
 
    // Map initialization
 
  }
</script>
<body onload="initialize()">
  <div id="map_canvas"></div>
</body>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 400
1 Maciej Los 222
2 OriginalGriff 213
3 Zoltán Zörgő 135
4 BillWoodruff 130
0 OriginalGriff 7,969
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,309
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100