/*global google, $*/ (function () { "use strict"; var mapOptions, mapCanvas, map; mapOptions = { zoom: 13, center: { lat: 50.7787589, lng: 7.1877042 }, mapTypeId: google.maps.MapTypeId.ROADMAP }; mapCanvas = document.getElementById('map-canvas'); map = new google.maps.Map(mapCanvas, mapOptions); var gpsLatLng = new google.maps.LatLng(50.7787589, 7.1877042); var marker = new google.maps.Marker({ position: gpsLatLng, map: map, icon: 'excaliburResized.jpg' }); }());
Example of marker with custom icon (image)
- Details
- Written by: Stanko Milosev
- Category: JavaScript
- Hits: 187