Skip to content

zakirsajib/Google-Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Google-Map GroundOverlay

Custom Google Map for a business

WATCH

We will build this

This is an image

You must need a google map api.

In WordPress functions.php file, you can use following:

wp_enqueue_script( THEME_TEXTDOMAIN . '-googlemappolyfill', 'https://polyfill.io/v3/polyfill.min.js?features=default', null, false, true );
wp_enqueue_script( THEME_TEXTDOMAIN . '-googlemap', get_stylesheet_directory_uri() . '/assets/theme/js/googlemap.js', null, false, true );
wp_enqueue_script( THEME_TEXTDOMAIN . '-googlemapapi', 'https://maps.googleapis.com/maps/api/js?key=YOURGOOGLEMAPAPIKEYHERE&callback=initMap', null, false, true );
  1. Add <div id="map"></div> in your html file.
  2. Write custom javscript code and add the path in your html file.
  3. Add googlemapapikey path and pollyfill.min.js path in your html file.
  4. I guess thats it!

About

Custom Google Map for a business

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published