=== XML Google Maps ===
Contributors: dschuesae
Tags: google maps, google, maps, gpx, kml, kmz, tracks, routes
Requires at least: 2.1
Tested up to: 2.5
Stable tag: 1.3
Donate link: http://www.matusz.ch/donate_xmlgooglemapswpplugin.htm
Converts links to kml, kmz and gpx files to a google map!
== Description ==
Add your own KML, KMZ or GPX files to your web page. Links to these files will be converted automatically to a Google Maps map.
Simply upload your gpx, kml or kmz file in your blog entry upload form. Make an a-link to the file. Save the entry and here it is - as simple as possible.
To extend or correct the map there are some parameters too:
Include Parameters within the <a> and </a> tag (<a href="gpx, kml or kmz url">Title [Parameters]</a>) and make sure that the whole url is on the same line.
- maptype:
Defines view type of Google Maps > (G_HYBRID_MAP, G_SATELLITE_MAP, G_NORMAL_MAP, G_PHYSICAL_MAP)
- maxlat, maxlon, minlat, minlon: Manually set center and zoom of your world View
- urldisplaymode: none (no link), showvars (include parameters), title (default)
- width, height: dimension of a single map can be changed
- zoom: Zoom Value of Google Maps to override the default or calculated zoom level (max. is around 20)
- deltazoom: Adds or subtracts zoom level to calculated or default zoom level! (Only works for maps without parameter "zoom")
- panzoomcontrol: large, small, zoom, hide
- overviewmapcontrol: hide, show
- scalecontrol: hide, show
- maptypecontrol: hide, show (Normal Buttons), hierarchical (Hierarchical Buttons and Checkboxes)
- align: left, center, right
- mapnormal, maphybrid, mapsat, mapphysical: Shows or Hides the specific Map Type Control Button
- dragging: enabled, disabled
- googlebar: enabled, disabled
- continuouszoom: enabled, disabled
- doubleclickzoom: enabled, disabled
- scrollwheelzoom: enabled, disabled
- gpxinterval:
Shows only every xth Track- or Routepoint
- gpxcolor:
Color of GPX Tracks and Routes!
- gpxlinewidth:
Width of GPX Tracks and Routes!
- gpxlineopacity: Opacity of GPX Tracks and Routes!
- gpxview: all, trk (tracks only), rte (routes only), wpt (waypoints only)
- gpxelevation: show (only works for gpx tracks with elevation information), hide
- gpxelevationcolor: line color of elevation chart
- gpxelevationlinewidth: line width of elevation chart
- gpxelevationheight: height of elevation chart
- gpxelevationmeasurement: metric or imperial
Examples:
Deutsche Anleitung!
== Installation ==
- Download the Plugin ZIP File
- Upload the Folder xml-google-maps to your wordpress plugin folder
- Activate the plugin
- Create a Google Maps API Key here
- Enter the Google Key in the Option Pane
- Set the size of your Google Map in the Option Pane
- Developed a better algo for resolving the url to a local path (GPX and KML parsing).
For Updates:
- Deactivate the plugin!
- Continue with the installation steps!
== Frequently Asked Questions ==
= Link don't get converted to map =
The whole a-Tag has to be on the same line in HTML Source
= Cannot change visibilty of one Map Type Control Button =
If you set this button to your default view, then this button has to be visible. But you can hide the whole Map Type Control in the top right corner.
== Screenshots ==
1. Normal Map
2. KML map marker with image
3. Sample of GPX File with Elevation Graph
4. Supports Google Bar in the bottom left Corner and Hierarchical Map Type Buttons on the top right corner
== Changes ==
Version 1.3
- Also supports a-tags with single quoted attributes now
- New algorithm for GPX Polyline encoding
- Shows XML Google Maps WP Plugin Banner on Map
- Supports new Map Type Physical
- New Parameters to change the MapType Control Buttons: mapnormal, maphybrid, mapsat, mapphysical (show, hide)
- Support added for the new Hierarchical Map Type Control. Set parameter overviewmapcontrol to hierarchical
- New parameters (enabled/disabled) for customize the map behaviour: dragging, googlebar, continuouszoom, doubleclickzoom, scrollwheelzoom
Version 1.2.4
- GPX Elevation line color names didn't work (green, red, ...). The plugin now converts the known html color names into hex.
Version 1.2.3
- Changed algorithm to get local path of a gpx file
Version 1.2.2
- Changed admin pages for new Wordpress Admin Styles
Version 1.2.1
Version 1.2
- The plugin does now validate for XHTML 1.0 Transitional (thx to fishtoes2000)
- Link to a on My Google Maps created map now also works with domains other than google.com (examples: google.de, google.ch, ... - thx to marius).
- Did not free xml parser and so did not accept more than one gpx file on the same page!
- Solved problem with the apos sign in the gpx comment, description or name tag
- New property 'CSS Style for GPX Waypoints' added in the settings section of the plugin!
Version 1.1
- New Parameter: gpxelevationmeasurement: metric/imperial
- Improvements in displaying the chart
- Bug with missing description for GPX Waypoints in map fixed!
- New Parameter: zoom to ovveride the default or calculated zoomlevel
- New Parameter: deltazoom to add or subtract zoom level to calculated or default zoom level! (Only works for maps without parameter "zoom")
- Set property frameborder=0 to iframe. IE now shows the iframe without any frame!
- Changed required_once() to required_once(dirname(__FILE__).)
Version 1.0
- New feature: Reads elevation information from the gpx tracks and displays the data in a chart!
- New Parameter: gpxelevation: show( only works for gpx tracks with elevation information), hide
- New Parameter: gpxelevationcolor: line color of elevation chart
- New Parameter: gpxelevationlinewidth: line width of elevation chart
- New Parameter: gpxelevationheight: height of elevation chart
- Bug with parameter value showvars=title fixed.
- Bug with Google Maps URL with encoded ampersand '&' -> '&' in it fixed (Wordpress replaces every '&' to '&' during saving a post).
Version 0.8
- Using Maps without Links possible with: [xmlgm <parameters>]
Version 0.7
- KML Files loading problem (script duration) solved!
- Marker from GPX Files won't show
- New Parameters: width and height for single map dimensions
- KML only correctly loaded with MapType G_MAP_TYPE, now delayed loading of other MapTypes!
- Support for KMZ Files added!
- New Parameter: panzoomcontrol for defining the left top pan/zoom control!
- New Parameter: overviewmapcontrol for showing a small overview map of the region!
- New Parameter: scalecontrol for showing a Scale Control!
- New Parameter: maptypecontrol for showing the Map Type Selection Buttons!
- New Parameter: align for aligning the IFrame
Version 0.6
- Default values for parameters can be set on the Option Pane
- The plugin now uses Encoded Polylines for faster loading and smaller files
- Changed Google Maps API Version from 2.x to 2 (stable)
Version 0.5
- Option Pane for Google Maps API Key and Dimension of the showing Google Maps
- GPX and KML files don't need to be added to wp_check_filetypes anymore
Version 0.4
- Internet Explorer didn't show Overlay's
- Performance optimazation for Polylines with man points
Version 0.3
- Use of Parameters: maptype, gpxinterval, gpxcolor, gpxlinewidth, gpxlineopacity, gpxview, maxlat, maxlon, minlat, minlon and urldisplaymode
- "My Maps - KML"-Links also get converted
- Georg's Solution for show.php
- Tracks and Routes get displayed
Version 0.2