Click here to Skip to main content
13,007,145 members (58,139 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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" "">
Posted 14-Nov-12 19:19pm
jkirkerx 15-Nov-12 1:37am
You would have to post the whole header with script, it's not the doc type
Christ_88 15-Nov-12 1:43am
so what should i do ?

1 solution

Rate this: bad
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.

  function initialize() {
    // Map initialization
<body onload="initialize()">
  <div id="map_canvas"></div>

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170628.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2017
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