Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

thydzik Google Map

Описание

Rewritten code supporting latest WordPress and Google Map API v3 features!

thydzikGoogleMap is a WordPress plugin that creates inline Google maps in your WordPress posts. With advantages over other existing Google maps plugins being;

  1. Ease of use, to create a Google map simply type ‘thydzikGoogleMap(mapdata.xml)’ (case insensitive) in your post on its own line.
  2. Uses XML map data, this allows for maximum configurability, and supports multiple coloured and numbers makers and polylines. Info windows can contain html.
  3. Supports cross-domain XML files by using a PHP proxy (your XML file can be anywhere).
  4. Google Map width, height, zoom and map type are all individually configurable.
  5. Allow readers to download gpx files which can be uploaded to GPS for easy navigation.
  6. Google Maps API v3, no key required.
    1.Support for KML files.

Official Homepage (with lots of working examples)

Notes

Comments welcome on any suggestions or bugs.

A few pointers:

* if width and height is excluded, the default width and height (460 and 345 respectively), found in the configuration page will be used.
* thydzikGoogleMap will produce a Google map only if the XML file is found, this was made so that examples i.e. thydzikGoogleMap(mapdata.xml) could be posted without producing a Google map.
* thydzikGoogleMap searches post text using the_content and replaces valid thydzikGoogleMap with HTML and Javascript to produce a Google map.
* thydzikGoogleMap produces valid XHTML.
* thydzikGoogleMap can read cross-domain XML files.

Скриншоты

  • Simple configuration page
  • In your post, write on its own line ‘thydzikGoogleMap(yourxmlfile.xml)’
  • Example.xml

Установка

  1. Upload folder ‘thydzik-google-map’ to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Under ‘Plugins’ > ‘thydzik Google Map’, you will find the ‘thydzik Google map setup’ page. The default map size can be changed here if desired.
  4. Upload a Google map XML data file with latitude and longitude points. An example XML file http://thydzik.com/thydzikGoogleMap/example.xml is included, it is better to create a directory outside the plugin directory as every time you update your xml files will be deleted.

Use

thydzikGoogleMap is called in a WordPress post by writing the following on a single line where you want the Google Map to appear:

thydzikgooglemap(example.xml)

For the more adventurous;

thydzikgooglemap(example.xml, width, height, zoom, maptype)

where:

  • example.xml is your xml file, and example xml file is included with thdyzikGoogleMap in the plugin directory.
  • width is the optional width parameter, if left out the default width defined in the thydzikGoogleMap options will be used.
  • height is the optional height parameter, if left out the default height defined in the thydzikGoogleMap options will be used.
  • zoom is the optional zoom level from 0 to 17 (0 being the furthest away), if left out zoom will be calculated automatically to fit all points.
  • maptype is the optional map type parameters, which can be (Normal, G_NORMAL_MAP, N), (SATELLITE, G_SATELLITE_MAP, S), (HYBRID, G_HYBRID_MAP, H), (PHYSICAL, G_PHYSICAL_MAP, P, TERRAIN or T) if left out Normal is defined.
  • gpx is the optional parmeter to show a icon on the map to allow gpx file download, the parameter can be gpx, d or download.
    width, height, zoom, maptype, gpx can be in any order and are case insensitive, all the following are valid uses:

  • thydzikgooglemap(example.xml)

  • thydzikGoogleMap(example.xml, 5, gpx)
  • thydzikgooglemap(example.xml, 4, S, download)
  • tHyDzIkGoOgLeMaP(example.xml,hYbRiD,450,225, gpx)
  • thydzikGoogleMap(example.xml, TERRAIN)
  • thydzikGoogleMap(example.xml, 640, 480)

Multiple thydzikGoogleMap can be displayed in a single post.

Часто задаваемые вопросы

Installation Instructions
  1. Upload folder ‘thydzik-google-map’ to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Under ‘Plugins’ > ‘thydzik Google Map’, you will find the ‘thydzik Google map setup’ page. The default map size can be changed here if desired.
  4. Upload a Google map XML data file with latitude and longitude points. An example XML file http://thydzik.com/thydzikGoogleMap/example.xml is included, it is better to create a directory outside the plugin directory as every time you update your xml files will be deleted.

Use

thydzikGoogleMap is called in a WordPress post by writing the following on a single line where you want the Google Map to appear:

thydzikgooglemap(example.xml)

For the more adventurous;

thydzikgooglemap(example.xml, width, height, zoom, maptype)

where:

  • example.xml is your xml file, and example xml file is included with thdyzikGoogleMap in the plugin directory.
  • width is the optional width parameter, if left out the default width defined in the thydzikGoogleMap options will be used.
  • height is the optional height parameter, if left out the default height defined in the thydzikGoogleMap options will be used.
  • zoom is the optional zoom level from 0 to 17 (0 being the furthest away), if left out zoom will be calculated automatically to fit all points.
  • maptype is the optional map type parameters, which can be (Normal, G_NORMAL_MAP, N), (SATELLITE, G_SATELLITE_MAP, S), (HYBRID, G_HYBRID_MAP, H), (PHYSICAL, G_PHYSICAL_MAP, P, TERRAIN or T) if left out Normal is defined.
  • gpx is the optional parmeter to show a icon on the map to allow gpx file download, the parameter can be gpx, d or download.
    width, height, zoom, maptype, gpx can be in any order and are case insensitive, all the following are valid uses:

  • thydzikgooglemap(example.xml)

  • thydzikGoogleMap(example.xml, 5, gpx)
  • thydzikgooglemap(example.xml, 4, S, download)
  • tHyDzIkGoOgLeMaP(example.xml,hYbRiD,450,225, gpx)
  • thydzikGoogleMap(example.xml, TERRAIN)
  • thydzikGoogleMap(example.xml, 640, 480)

Multiple thydzikGoogleMap can be displayed in a single post.

thydzik Google Map is not working or experiencing problems

Post a comment on the thydzik Google map homepage and be sure to accurately describe the problem and please include a link to your post with the thydzik Google Map problem.

Отзывы

31.12.2017
I’ve been using this plugin for years, and really like it. Unfortunately, it’s so out of date that it’s using PHP functions that were deprecated with PHP version 5.3 (2009) and were removed completely with PHP 7.0. Since PHP 7 makes such a HUGE difference in website performance, this is a deal killer. Time to find a new way to embed Google Maps.
Посмотреть 1 отзыв

Участники и разработчики

«thydzik Google Map» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «thydzik Google Map» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

2.0

  • rewritten code
  • uses Google marker source
  • added gpx file downloads
  • optimised Javascript

1.4.7

  • removed static markers and added dynamic marker generation functionality

1.4.5

  • added functionality to not try to display map if page is proxied through another site, which would mean invalid API key
  • added map zoom and type options
  • added functionality for multiple maps on single post

1.4

  • added functionality to not try to display map if page is proxied through another site, which would mean invalid api key
  • added zoom option

1.3

  • addition of nice html output if plugin file is viewed outside WordPress
  • updated regex used to detect thydzikgooglemap in posts

1.2

  • fix for non standard install locations

1.1

  • addition of markers from 0 to 115
  • added xml proxy for cross domain xml files

1.0

  • Initial Release