Problem Building a Simple Google Maps Plugin
Wierd, just re-read your comment and looks like your shortcode is working when you call it that early – if the map-canvas div is showing up. here’s the code I tested, also added jquery as a dependency for your custom script & changed some css on you div… function lax_google_map_init() { wp_enqueue_script(‘google-maps’, ‘http://maps.googleapis.com/maps/api/js?sensor=false’); wp_enqueue_script(‘lax_google_map_script’, plugins_url(‘js/lax_google_map_script.js’, … Read more