The use of Google Maps in Tizen Mobile

By using GoogleMaps API we can successfuly view map of world. You have to remember setting Internet privilege for external scripts and data.
<!DOCTYPE html>
<html>
<head>
<style>
* {
margin:0;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Load of GoogleMaps API -->
<script src="http://maps.googleapis.com/maps/api/js"></script>
<script>
function initialize() {
  var mapProp = {
    // Start position
    center:new google.maps.LatLng(52.217784,21.008128),
    zoom:5,
    mapTypeId:google.maps.MapTypeId.ROADMAP
  };
  var map=new google.maps.Map(document.getElementById("googleMap"), mapProp);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="googleMap" style="width:320px;height:510px;"></div>
</body>
</html>

Responses

0 Replies