GoogleMap v1.4.5 is now available with significant improvements, including
- The Google Maps Javascript and GoogleMap Javascript is downloaded only as needed, speeding up page loading of all pages without maps.
- Removal of <head> code means GoogleMap will only be present when called.
- Compressed GoogleMap code.
- Multiple maps can now be created in a single post!
- Map type can be changed from default by providing an additional ‘map type’ parameter.
GoogleMap produces valid XHTML and allows for easy creation of Google Maps in your WordPress posts from XML map data.
Grab the latest from the WordPress repository.
Examples of the newest functionality below:
Using either: Normal, G_NORMAL_MAP, N or left out; i.e. GoogleMap(example.xml), GoogleMap will produce a default styled map
tGoogleMap(example.xml)
Using either: SATELLITE, G_SATELLITE_MAP, S; i.e. tgooglemap(example.xml, 4, S), GoogleMap will produce a satellite styled map. Note I have included a zoom of 4, and used the abreviation ‘S’.
tgooglemap(example.xml, 4, S)
Using either: HYBRID, G_HYBRID_MAP, H; i.e. tGoOgLeMaP(example.xml,hYbRiD,450,225), tGoolgeMap will produce a hybrid styled map. Note I have included a width and height, and proved that capitalisation is not of concern.
tGoOgLeMaP(example.xml, hYbRiD, 450,225)
Finally, using either: PHYSICAL, G_PHYSICAL_MAP, P, TERRAIN or T; i.e tGoogleMap(example.xml,TERRAIN), tGoogleMap will produce a terrain styled map.
tGoogleMap(example.xml,TERRAIN)
As always, comments and suggestions welcome. In a future update I will try to incorporate rounded corners 🙂
Leave a Reply