开发者 | ankurk91 |
---|---|
更新时间 | 2021年2月16日 15:02 |
PHP版本: | 4.0.0 及以上 |
WordPress版本: | 4.9.0 |
版权: | MIT |
版权网址: | 版权信息 |
Found bugs ? I am happy to resolve bugs, report bugs here Please use WordPress forums for any kind of support.
ank-google-map
to the /wp-content/plugins/
directory[ank_google_map]
short-code in your pages/posts/widgets.[ank_google_map]
It utilize WordPress dash-icons, color picker, and text editor on plugin Options Page. It does not create additional tables in your database, uses inbuilt 'wp_options' table. The whole package is about 25 kb (zipped).
There are many of Map plugins in plugin directory, but most of them not written well. Means they put lots of java script (uncompressed) code on every page of your website. They also loads jQuery file before them which effects your page speed. This plugin will enqueue its JS files on the required page only. It does not depends on external js library like: jQuery.
Add this css code to your theme's style.css file to fix this ` .gmnoprint img, #agm-canvas img { max-width: none; } `
This is because of you theme css, test with WP default theme first.
Add this line to your theme's functions.php
add_filter( 'widget_text', 'do_shortcode' );
Are you using some Cache/Performance plugin (eg:WP Super Cache/W3 Total Cache) ? Then flush your WP cache and refresh target page.
WP Database->wp-options->ank_google_map. Uses a single row, stored in array for faster access.
Every marker image is loaded from official Google Server. You can also upload your own marker images.
No worry! It will remove its traces from database upon uninstall. You have to remove short-code from your pages by yourself.
You can force google to load a specific language for all visitors. Get latest supported language code list from here. If you don't specify language code then google will try to load the language requested by visitor's web browser.
Set Map Canvas Width to 100 %. Map will auto center upon resize.
Leave the color field empty and it will not be applied.
No, i always test with latest version only. So i recommend you to upgrade to latest WordPress today.
It means 'Google Map API' is not loaded. Possible reasons are -
window
, read