i'm newbie jsfiddle , can't seem font awesome marker onto fiddle. can tell me problem please?
<div id="googlemap" style="width:500px;height:380px;"></div> var mycenter = new google.maps.latlng(51.508742, -0.120850); function initialize() { var mapprop = { center: mycenter, zoom: 15, maptypeid: google.maps.maptypeid.terrain }; var map = new google.maps.map(document.getelementbyid("googlemap"), mapprop); var marker = new google.maps.marker({ position: mycenter, map: map, icon: { path: fontawesome.markers.map_marker, scale: 0.5, strokeweight: 0.2, strokecolor: '#9300d6', strokeopacity: 1, fillcolor: '#d69112', fillopacity: 1 } }); /*var marker = new google.maps.marker({ position: mycenter, });*/ marker.setmap(map); } google.maps.event.adddomlistener(window, 'load', initialize);
i think forgot add fontawesome-marker package fiddle source. updated jsfiddle , works fine.
https://rawgit.com/nathan-muir/fontawesome-markers/master/fontawesome-markers.min.js
Comments
Post a Comment