Last active
April 29, 2016 22:28
-
-
Save erezLieberman/243653e90c78cd336a56 to your computer and use it in GitHub Desktop.
custom icon in acf google maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create marker | |
var templateDir = "<?php bloginfo('stylesheet_directory') ?>"; | |
var iconBase = templateDir + '/images/map_icon.svg'; | |
var marker = new google.maps.Marker({ | |
position : latlng, | |
map : map, | |
icon: iconBase | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment