This thread is a more investigation from my side to try to know why my Map is not visible on my page.
The original thread
can be seen here
Why I have notice that when I run my page which contain the MAP, then the square is gray out but the map is loaded as I can place pin.
Then if I press only once the F12 key to be in debug mode, then suddenly the MAP apears and the remains
Any idea ?
Sorry I am not an expert in this but can give you any needed infromation for helping me identify why it behaves like this
If I check the debuger while refreshing my page containing the map I have only the follwing warning :
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Once I click F12 to be in debug mode, map sundenly appears
I’d like to know whether the map will never show in browser if you don’t press F12 to use developer tools, or it will show after a time. Besides, do you ask for help on Google Maps JavaScript API forum?
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
The map get display in the "dvMap" DIV element. Then map is initialised by the InitializeMap() script method. In this method, I am wondering if the problem occurs because it cannot find the dvMap element may be ?
I have notice that if I insert this line below before the map variable in order to know if the div section can be reach :
var oVDiv = document.getElementById("dvMap");
alert("The content of the first dvMap element is " + "\"" + oVDiv.innerHTML + "\".");
It does not return the map div !!!!!
Instead it return : " The content of the first dvmap element is <div style="overflow:hidden;"></div>
I wish you could help because I am figthing with this for weeks now :-(
I still have this issue and have no idea how to solve it. What I have notice a new thing is as follow :
When my page is loaded the first time then, the map is not visible but I can interact with it.
Then when I change the size of the internet explorer window, suddendly the map appaears correctly.
Any idea what is going on ? any refressing issue which is not happening ?
Try changing the zie of your map div, alter the height and width using CSS or inline CSS and then try, mostly the design issue can be cause of such anomaly.
Member
34 Points
88 Posts
Map on Website not see, but if I click on F12 for debug then it sudendly happen
Apr 26, 2016 03:18 PM|sergeC|LINK
Dear all,
This thread is a more investigation from my side to try to know why my Map is not visible on my page.
The original thread can be seen here
Why I have notice that when I run my page which contain the MAP, then the square is gray out but the map is loaded as I can place pin.
Then if I press only once the F12 key to be in debug mode, then suddenly the MAP apears and the remains
Any idea ?
Sorry I am not an expert in this but can give you any needed infromation for helping me identify why it behaves like this
If I check the debuger while refreshing my page containing the map I have only the follwing warning :
"Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys"
regards
All-Star
40565 Points
6233 Posts
Microsoft
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
Apr 27, 2016 05:26 AM|Fei Han - MSFT|LINK
Hi sergeC,
From the link, we could find that the script element that loads the API has no API key, which will cause NoApiKeys error.
you could also ask for help on Google Maps JavaScript API forum.
http://stackoverflow.com/questions/tagged/google-maps-api-3
Best Regards,
Fei Han
Member
34 Points
88 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
Apr 30, 2016 03:27 PM|sergeC|LINK
I have added the following script as sugested and my page appears as see in below link :
https://onedrive.live.com/redir?resid=9ECBD63702497F70!13035&authkey=!ALyxepZH4eEpdH8&v=3&ithint=photo%2cPNG
As you can see the map area is not visible but if I click on it I manage to retrive Location value.
Once I click F12 to be in debug mode, map sundenly appears :
https://onedrive.live.com/redir?resid=9ECBD63702497F70!17080&authkey=!AGAig2JD8VYWwW8&v=3&ithint=photo%2cpng
Same thing happen either on IE v 11 or chrome
Any idea what is going on ?
Member
34 Points
88 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
May 03, 2016 06:52 AM|sergeC|LINK
anyone has any idea ?
All-Star
40565 Points
6233 Posts
Microsoft
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
May 05, 2016 08:30 AM|Fei Han - MSFT|LINK
Hi sergeC,
I’d like to know whether the map will never show in browser if you don’t press F12 to use developer tools, or it will show after a time. Besides, do you ask for help on Google Maps JavaScript API forum?
http://stackoverflow.com/questions/tagged/google-maps-api-3
Best Regards,
Fei Han
Member
34 Points
88 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
May 10, 2016 11:06 AM|sergeC|LINK
Dear Fei,
Map never appears in browser.
It appears only after pressing the F12.
Yes I have send message to Google Maps JavaScript API forum and they ask me to place the key and I have done exactly how they suggest me but with same result
Here is the link of my post without real answer :
http://stackoverflow.com/questions/36907029/map-only-visible-on-my-web-page-if-i-press-f12-key-under-ie/36934960#36934960
Here is below how my page which contains the map looks like :
The map get display in the "dvMap" DIV element. Then map is initialised by the InitializeMap() script method. In this method, I am wondering if the problem occurs because it cannot find the dvMap element may be ?
I have notice that if I insert this line below before the map variable in order to know if the div section can be reach :
It does not return the map div !!!!!
Instead it return : " The content of the first dvmap element is <div style="overflow:hidden;"></div>
I wish you could help because I am figthing with this for weeks now :-(
regards
Member
34 Points
88 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
May 12, 2016 09:56 AM|sergeC|LINK
Any idea ?
Member
34 Points
88 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
Jul 28, 2016 07:40 AM|sergeC|LINK
Dear all,
I still have this issue and have no idea how to solve it. What I have notice a new thing is as follow :
When my page is loaded the first time then, the map is not visible but I can interact with it.
Then when I change the size of the internet explorer window, suddendly the map appaears correctly.
Any idea what is going on ? any refressing issue which is not happening ?
regards
serge
Participant
1222 Points
371 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
Jul 28, 2016 08:27 AM|shivigupta31web|LINK
Hi sergeC,
Try changing the zie of your map div, alter the height and width using CSS or inline CSS and then try, mostly the design issue can be cause of such anomaly.
Hope this helps.
Stay humble.
Member
230 Points
148 Posts
Re: Map on Website not see, but if I click on F12 for debug then it sudendly happen
Jul 28, 2016 08:46 AM|jmpalines|LINK
fire up fiddler then browse the page see if any resource are not loaded