How to use Google Maps on Gear S2?

How to use Google Maps on Gear S2?

BY 21 Aug 2016 Web Application Development

Hi! I want to use Basic Google Map in my Gear S2 app, but it don’t work. How can I fix this and launch Google Maps in app? Thank you! P.S. This code work perfectly in browser.

<!DOCTYPE html>
<html>
  <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      #map {
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div id="map"></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=YES_I_DONT_FORGET_ABOUT_API&callback=initMap"
        async defer></script>
  </body>
</html>

 

Written by