Hello
I'm trying to display google maps into a KendoUI Mobile view. The map doesn't appear and there is also no error in the console. Do I have to consider something special?
My working code so far:
<!DOCTYPE html><html><head> <title>My App</title> <link href="https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.common.min.css" rel="stylesheet" /> <link href="https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.mobile.all.min.css" rel="stylesheet" /> <script src="https://kendo.cdn.telerik.com/2018.2.516/js/jquery.min.js"></script> <script src="https://kendo.cdn.telerik.com/2018.2.516/js/kendo.all.min.js"></script> <script src="https://maps.googleapis.com/maps/api/js?key=YourAppKey"></script></head><script> function initMap() { var location = {lat: -25.363, lng: 131.044}; var map = new google.maps.Map(document.getElementById('showmap'), { zoom: 4, center: location }); } $(document).ready(function() { app = new kendo.mobile.Application($(document.body), { skin: 'flat', transition: 'slide', initial: "mapview", init: function () { initMap(); } }); });</script><body><!-- View map --><div id="mapview" data-role="view" data-layout="default"> <div>Some text</div> <div id="showmap"></div> // <-- Should display google maps</div></body></html>(Replace "YourAppKey" with your app key of google maps)
My project heavily depends on google maps. So I hope there is a solution to display google maps (in a view).
Regards
