Hi i have the next code:
<body>
<div id="map" style="width: 500px; height: 400px;"></div>
<script> var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: -34.397, lng: 150.644}, zoom: 8 }); }
</script> <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script> </body> </html>
i Use my api key the problem tath i have is the page where the map load, load full grey and i have to rotate the screen to fix tath
链接已复制
Hello Nicolas,
Which XDK version are you using?
Which device are you testing on?
I would recommend you trying this sample app and test the behaviour of the maps. Here is the sample
https://github.com/gomobile/sample-html5-geolocation-map
You can access this sample directly from XDK under samples and demos.
Amrita C
how i add this to my app i tried once and it dint work
im using last version of intel xdk, i tried with all the devices from the emulator and with sony xperia c3 and samsung galaxy s3 on real
Anusha M
yes rotating the screen it fiexed
Amrita C. (Intel)
the problem tath i have is i don't need the geo part of the sample so when i try to removed everythink crash tath why i would like to fix the simple example tath google maps bring.
Steps to create .zip project:
- Locate the items to zip in the Mac Finder (file system)
- Right-click on a file, folder, or files you want to zip.
- Select “Compress Items”
- Find the newly created .zip archive in the same directory.