diff --git a/images/icons/cf_icon_position.png b/images/icons/cf_icon_position.png new file mode 100644 index 00000000..1412bd33 Binary files /dev/null and b/images/icons/cf_icon_position.png differ diff --git a/images/icons/cf_icon_position.svg b/images/icons/cf_icon_position.svg new file mode 100644 index 00000000..dd318b06 --- /dev/null +++ b/images/icons/cf_icon_position.svg @@ -0,0 +1,62 @@ + + + diff --git a/tabs/gps.html b/tabs/gps.html index ba744bd2..cb3d456e 100644 --- a/tabs/gps.html +++ b/tabs/gps.html @@ -160,7 +160,7 @@
diff --git a/tabs/map.html b/tabs/map.html index b5c93648..838f5530 100644 --- a/tabs/map.html +++ b/tabs/map.html @@ -33,12 +33,17 @@ function initialize() { map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); - var marker = new google.maps.Marker({ - // The below line is equivalent to writing: - // position: new google.maps.LatLng(-34.397, 150.644) - position: {lat: 53.570645, lng: 10.001362}, - map: map +var marker = new google.maps.Marker({ + icon : '../images/icons/cf_icon_position.png', + position: new google.maps.LatLng(53.570645, 10.001362), + size: new google.maps.Size(10, 10), + map:map + }); + + + + // You can use a LatLng literal in place of a google.maps.LatLng object when // creating the Marker object. Once the Marker object is instantiated, its @@ -46,7 +51,7 @@ function initialize() { // we retrieve the marker's position using the // google.maps.LatLng.getPosition() method. var infowindow = new google.maps.InfoWindow({ - content: 'Marker Location:' + marker.getPosition() + '
' + content: 'Your Location: ' + marker.getPosition() + '
' }); google.maps.event.addListener(marker, 'click', function() { @@ -56,6 +61,7 @@ function initialize() { // sandbox docs1: https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/sandbox // sandbox docs1: https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/sandboxed-content +