Maybar Posted December 12, 2019 Share Posted December 12, 2019 I using TUniHTMLFrame Is there a solution thanks.. HTML Strings: <!DOCTYPE html> <html> <body> <div id="map" style="position: absolute; width: 100%; height: 100%"></div> <script> function myMap() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { initialLocation = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); map.setCenter(initialLocation); }); } var mapOptions = { center: new google.maps.LatLng(51.5, -0.12), zoom: 16, mapTypeId: google.maps.MapTypeId.HYBRID } var map = new google.maps.Map(document.getElementById("map"), mapOptions); } </script> <script src="https://maps.googleapis.com/maps/api/js?key=?????????????????????????????????&callback=myMap"></script> <!-- To use this code on your website, get a free API key from Google. Read more at: https://www.w3schools.com/graphics/google_maps_basic.asp --> </body> </html> Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted December 12, 2019 Share Posted December 12, 2019 There must be an error on console. Please Check your console. Also you can use UniMAP component. Quote Link to comment Share on other sites More sharing options...
Maybar Posted December 13, 2019 Author Share Posted December 13, 2019 hocam ilk açılışta geliyor 1 sn sonra aşağıdaki hata ekranı geliyor. uniMap kullanımı da kontrol ederim teşekkürler. google map kullanımıyla ilgili detaylı bir örnek vs. var mı forum da teşekkürler. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted December 13, 2019 Share Posted December 13, 2019 Hi, When you open browser hit F12 to open console. Please check UniMap Demo. C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\UniMap Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.