- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hi Nicolas,
You have to create a new project of that particular sample, name it and check in the plugin from the core list. And test that out if map is working or not.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Ok! Which XDK version are you using? Building for which platform? (iOS, Android, crosswalk, windows)
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
i use the last one (2807) and i want to build for android and ios. whit ui framework jquery mobile
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.