Version Description
[2012-06-29] = * added: option showdirections, to show the directions search when the map loads * added: option directionsfrom, to set the default from: location, and immediately search for directions when showdirections is set
Download this release
Release Info
Developer | webaware |
Plugin | Flexible Map |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.2.0
- class.FlxMapPlugin.php +16 -8
- flexible-map.js +46 -5
- flexible-map.min.js +1 -1
- flexible-map.php +1 -1
- instructions.html +4 -0
- readme.txt +8 -2
class.FlxMapPlugin.php
CHANGED
@@ -77,7 +77,7 @@ class FlxMapPlugin {
|
|
77 |
if ($this->loadScripts) {
|
78 |
// load required scripts
|
79 |
$url = parse_url($this->urlBase, PHP_URL_PATH);
|
80 |
-
$version =
|
81 |
|
82 |
echo <<<HTML
|
83 |
<script src="//maps.google.com/maps/api/js?v=3.8&sensor=false"></script>
|
@@ -126,7 +126,7 @@ HTML;
|
|
126 |
$divDirections = "\n<div id='$divDirectionsID' class='flxmap-directions'></div>";
|
127 |
}
|
128 |
else {
|
129 |
-
$divDirectionsID = $attrs['directions'];
|
130 |
}
|
131 |
}
|
132 |
|
@@ -182,29 +182,37 @@ HTML;
|
|
182 |
$html .= " f.markerDirections = \"$divDirectionsID\";\n";
|
183 |
}
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
if (isset($attrs['maptype'])) {
|
186 |
-
$html .= " f.mapTypeId = \"{$attrs['maptype']}\";\n";
|
187 |
}
|
188 |
|
189 |
if (isset($attrs['region'])) {
|
190 |
-
$html .= " f.region = \"{$attrs['region']}\";\n";
|
191 |
}
|
192 |
|
193 |
if (isset($attrs['locale'])) {
|
194 |
-
$html .= " f.setlocale(\"{$attrs['locale']}\");\n";
|
195 |
$this->locales[$attrs['locale']] = 1;
|
196 |
}
|
197 |
else if ($this->locale != '' || $this->locale != 'en-US') {
|
198 |
-
$locale = str_replace('_', '-', $this->locale);
|
199 |
$html .= " f.setlocale(\"$locale\");\n";
|
200 |
$this->locales[$locale] = 1;
|
201 |
}
|
202 |
|
203 |
// add map based on coordinates, with optional marker coordinates
|
204 |
if (isset($attrs['center']) && self::isCoordinates($attrs['center'])) {
|
205 |
-
$marker = $attrs['center'];
|
206 |
if (isset($attrs['marker']) && self::isCoordinates($attrs['marker']))
|
207 |
-
$marker = $attrs['marker'];
|
208 |
|
209 |
if (isset($attrs['zoom']))
|
210 |
$html .= " f.zoom = " . preg_replace('/\D/', '', $attrs['zoom']) . ";\n";
|
77 |
if ($this->loadScripts) {
|
78 |
// load required scripts
|
79 |
$url = parse_url($this->urlBase, PHP_URL_PATH);
|
80 |
+
$version = 9;
|
81 |
|
82 |
echo <<<HTML
|
83 |
<script src="//maps.google.com/maps/api/js?v=3.8&sensor=false"></script>
|
126 |
$divDirections = "\n<div id='$divDirectionsID' class='flxmap-directions'></div>";
|
127 |
}
|
128 |
else {
|
129 |
+
$divDirectionsID = self::str2js($attrs['directions']);
|
130 |
}
|
131 |
}
|
132 |
|
182 |
$html .= " f.markerDirections = \"$divDirectionsID\";\n";
|
183 |
}
|
184 |
|
185 |
+
if (isset($attrs['showdirections']) && self::isYes($attrs['showdirections'])) {
|
186 |
+
$html .= " f.markerDirectionsShow = true;\n";
|
187 |
+
}
|
188 |
+
|
189 |
+
if (isset($attrs['directionsfrom'])) {
|
190 |
+
$html .= " f.markerDirectionsDefault = \"{$this->str2js($attrs['directionsfrom'])}\";\n";
|
191 |
+
}
|
192 |
+
|
193 |
if (isset($attrs['maptype'])) {
|
194 |
+
$html .= " f.mapTypeId = \"{$this->str2js($attrs['maptype'])}\";\n";
|
195 |
}
|
196 |
|
197 |
if (isset($attrs['region'])) {
|
198 |
+
$html .= " f.region = \"{$this->str2js($attrs['region'])}\";\n";
|
199 |
}
|
200 |
|
201 |
if (isset($attrs['locale'])) {
|
202 |
+
$html .= " f.setlocale(\"{$this->str2js($attrs['locale'])}\");\n";
|
203 |
$this->locales[$attrs['locale']] = 1;
|
204 |
}
|
205 |
else if ($this->locale != '' || $this->locale != 'en-US') {
|
206 |
+
$locale = self::str2js(str_replace('_', '-', $this->locale));
|
207 |
$html .= " f.setlocale(\"$locale\");\n";
|
208 |
$this->locales[$locale] = 1;
|
209 |
}
|
210 |
|
211 |
// add map based on coordinates, with optional marker coordinates
|
212 |
if (isset($attrs['center']) && self::isCoordinates($attrs['center'])) {
|
213 |
+
$marker = self::str2js($attrs['center']);
|
214 |
if (isset($attrs['marker']) && self::isCoordinates($attrs['marker']))
|
215 |
+
$marker = self::str2js($attrs['marker']);
|
216 |
|
217 |
if (isset($attrs['zoom']))
|
218 |
$html .= " f.zoom = " . preg_replace('/\D/', '', $attrs['zoom']) . ";\n";
|
flexible-map.js
CHANGED
@@ -20,6 +20,8 @@ function FlexibleMap() {
|
|
20 |
this.markerLink = ''; // link for marker title
|
21 |
this.markerShowInfo = true; // if have infowin for marker, show it immediately
|
22 |
this.markerDirections = false; // show directions link in info window
|
|
|
|
|
23 |
this.markerAddress = ''; // address of marker, if given
|
24 |
this.targetFix = true; // remove target="_blank" from links on KML map
|
25 |
this.navigationControlOptions = { style: google.maps.NavigationControlStyle.SMALL };
|
@@ -32,18 +34,41 @@ function FlexibleMap() {
|
|
32 |
|
33 |
FlexibleMap.prototype = (function() {
|
34 |
|
35 |
-
var addEventListener, stopEvent;
|
36 |
|
37 |
// detect standard event model
|
38 |
if (document.addEventListener) {
|
39 |
-
addEventListener = function(element, eventName, hook) {
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
else
|
43 |
// detect IE event model
|
44 |
if (document.attachEvent) {
|
45 |
-
addEventListener = function(element, event, hook) {
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
return {
|
@@ -84,6 +109,8 @@ FlexibleMap.prototype = (function() {
|
|
84 |
this.localeActive = "en";
|
85 |
}
|
86 |
}
|
|
|
|
|
87 |
},
|
88 |
|
89 |
/**
|
@@ -198,7 +225,10 @@ FlexibleMap.prototype = (function() {
|
|
198 |
a.appendChild(document.createTextNode(this.gettext("Directions")));
|
199 |
element.appendChild(a);
|
200 |
container.appendChild(element);
|
|
|
201 |
|
|
|
|
|
202 |
// make sure we have a directions service
|
203 |
if (!this.dirService)
|
204 |
this.dirService = new google.maps.DirectionsService();
|
@@ -208,6 +238,11 @@ FlexibleMap.prototype = (function() {
|
|
208 |
panel: document.getElementById(this.markerDirections)
|
209 |
});
|
210 |
}
|
|
|
|
|
|
|
|
|
|
|
211 |
}
|
212 |
|
213 |
infowin = new google.maps.InfoWindow({content: container});
|
@@ -292,6 +327,7 @@ FlexibleMap.prototype = (function() {
|
|
292 |
from = document.createElement("input");
|
293 |
from.type = "text";
|
294 |
from.name = "from";
|
|
|
295 |
p.appendChild(from);
|
296 |
input = document.createElement("input");
|
297 |
input.type = "submit";
|
@@ -360,6 +396,11 @@ FlexibleMap.prototype = (function() {
|
|
360 |
|
361 |
});
|
362 |
|
|
|
|
|
|
|
|
|
|
|
363 |
}
|
364 |
|
365 |
};
|
20 |
this.markerLink = ''; // link for marker title
|
21 |
this.markerShowInfo = true; // if have infowin for marker, show it immediately
|
22 |
this.markerDirections = false; // show directions link in info window
|
23 |
+
this.markerDirectionsShow = false; // show directions as soon as page loads
|
24 |
+
this.markerDirectionsDefault = ''; // default from: location for directions
|
25 |
this.markerAddress = ''; // address of marker, if given
|
26 |
this.targetFix = true; // remove target="_blank" from links on KML map
|
27 |
this.navigationControlOptions = { style: google.maps.NavigationControlStyle.SMALL };
|
34 |
|
35 |
FlexibleMap.prototype = (function() {
|
36 |
|
37 |
+
var addEventListener, stopEvent, fireEvent;
|
38 |
|
39 |
// detect standard event model
|
40 |
if (document.addEventListener) {
|
41 |
+
addEventListener = function(element, eventName, hook) {
|
42 |
+
element.addEventListener(eventName, hook, false);
|
43 |
+
};
|
44 |
+
|
45 |
+
stopEvent = function(event) {
|
46 |
+
event.stopPropagation(); event.preventDefault();
|
47 |
+
};
|
48 |
+
|
49 |
+
fireEvent = function(element, eventName) {
|
50 |
+
var event = document.createEvent("HTMLEvents");
|
51 |
+
event.initEvent(eventName, true, true);
|
52 |
+
element.dispatchEvent(event);
|
53 |
+
};
|
54 |
}
|
55 |
else
|
56 |
// detect IE event model
|
57 |
if (document.attachEvent) {
|
58 |
+
addEventListener = function(element, event, hook) {
|
59 |
+
element.attachEvent("on" + event, function() { hook.call(element, window.event); });
|
60 |
+
};
|
61 |
+
|
62 |
+
stopEvent = function(event) {
|
63 |
+
event.cancelBubble = true;
|
64 |
+
event.returnValue = 0;
|
65 |
+
};
|
66 |
+
|
67 |
+
fireEvent = function(element, eventName) {
|
68 |
+
var event = document.createEventObject();
|
69 |
+
event.eventType = eventName;
|
70 |
+
element.fireEvent("on" + eventName, event);
|
71 |
+
};
|
72 |
}
|
73 |
|
74 |
return {
|
109 |
this.localeActive = "en";
|
110 |
}
|
111 |
}
|
112 |
+
|
113 |
+
return this.localeActive;
|
114 |
},
|
115 |
|
116 |
/**
|
225 |
a.appendChild(document.createTextNode(this.gettext("Directions")));
|
226 |
element.appendChild(a);
|
227 |
container.appendChild(element);
|
228 |
+
}
|
229 |
|
230 |
+
// add a directions service if needed
|
231 |
+
if (this.markerDirections || this.markerDirectionsShow) {
|
232 |
// make sure we have a directions service
|
233 |
if (!this.dirService)
|
234 |
this.dirService = new google.maps.DirectionsService();
|
238 |
panel: document.getElementById(this.markerDirections)
|
239 |
});
|
240 |
}
|
241 |
+
|
242 |
+
// show directions immediately if required
|
243 |
+
if (this.markerDirectionsShow) {
|
244 |
+
this.showDirections(marker[0], marker[1], this.markerTitle);
|
245 |
+
}
|
246 |
}
|
247 |
|
248 |
infowin = new google.maps.InfoWindow({content: container});
|
327 |
from = document.createElement("input");
|
328 |
from.type = "text";
|
329 |
from.name = "from";
|
330 |
+
from.value = this.markerDirectionsDefault;
|
331 |
p.appendChild(from);
|
332 |
input = document.createElement("input");
|
333 |
input.type = "submit";
|
396 |
|
397 |
});
|
398 |
|
399 |
+
// if the from: location is already set, trigger the directions query
|
400 |
+
if (from.value) {
|
401 |
+
fireEvent(form, "submit");
|
402 |
+
}
|
403 |
+
|
404 |
}
|
405 |
|
406 |
};
|
flexible-map.min.js
CHANGED
@@ -2,4 +2,4 @@
|
|
2 |
JavaScript for the WordPress plugin wp-flexible-map
|
3 |
copyright (c) 2011-2012 WebAware Pty Ltd, released under LGPL v2.1
|
4 |
*/
|
5 |
-
function FlexibleMap(){this.mapTypeId=google.maps.MapTypeId.ROADMAP;this.mapTypeControl=true;this.scaleControl=false;this.panControl=false;this.zoomControl=true;this.streetViewControl=false;this.scrollwheel=false;this.draggable=true;this.dblclickZoom=true;this.zoom=16;this.markerTitle="";this.markerDescription="";this.markerLink="";this.markerShowInfo=true;this.markerDirections=false;this.markerAddress="";this.targetFix=true;this.navigationControlOptions={style:google.maps.NavigationControlStyle.SMALL};this.dirService=false;this.dirPanel=false;this.region="";this.locale="en";this.localeActive="en"}FlexibleMap.prototype=(function(){var b,a;if(document.addEventListener){
|
2 |
JavaScript for the WordPress plugin wp-flexible-map
|
3 |
copyright (c) 2011-2012 WebAware Pty Ltd, released under LGPL v2.1
|
4 |
*/
|
5 |
+
function FlexibleMap(){this.mapTypeId=google.maps.MapTypeId.ROADMAP;this.mapTypeControl=true;this.scaleControl=false;this.panControl=false;this.zoomControl=true;this.streetViewControl=false;this.scrollwheel=false;this.draggable=true;this.dblclickZoom=true;this.zoom=16;this.markerTitle="";this.markerDescription="";this.markerLink="";this.markerShowInfo=true;this.markerDirections=false;this.markerDirectionsShow=false;this.markerDirectionsDefault="";this.markerAddress="";this.targetFix=true;this.navigationControlOptions={style:google.maps.NavigationControlStyle.SMALL};this.dirService=false;this.dirPanel=false;this.region="";this.locale="en";this.localeActive="en"}FlexibleMap.prototype=(function(){var c,b,a;if(document.addEventListener){c=function(e,d,f){e.addEventListener(d,f,false)};b=function(d){d.stopPropagation();d.preventDefault()};a=function(e,d){var f=document.createEvent("HTMLEvents");f.initEvent(d,true,true);e.dispatchEvent(f)}}else{if(document.attachEvent){c=function(d,e,f){d.attachEvent("on"+e,function(){f.call(d,window.event)})};b=function(d){d.cancelBubble=true;d.returnValue=0};a=function(e,d){var f=document.createEventObject();f.eventType=d;e.fireEvent("on"+d,f)}}}return{constructor:FlexibleMap,i18n:{en:{"Click for details":"Click for details",Directions:"Directions",From:"From","Get directions":"Get directions"}},setlocale:function(d){this.locale=d;if(d in this.i18n){this.localeActive=d}else{d=d.substr(0,2);if(d in this.i18n){this.localeActive=d}else{this.localeActive="en"}}return this.localeActive},gettext:function(e){var d=this.i18n[this.localeActive];if(e in d){return d[e]}return""},showKML:function(d,h,e){var g=this.showMap(d,[0,0]),f=new google.maps.KmlLayer(h);f.setMap(g);if(typeof e!="undefined"){google.maps.event.addListenerOnce(g,"tilesloaded",function(){g.setZoom(e)})}if(this.targetFix){google.maps.event.addListener(f,"click",function(i){i.featureData.description=i.featureData.description.replace(/ target="_blank"/ig,"")})}},showMarker:function(g,f,l){var e=this.showMap(g,f),o=new google.maps.Marker({map:e,position:new google.maps.LatLng(l[0],l[1])});if(!this.markerTitle){this.markerTitle=this.markerAddress}if(this.markerTitle){var k,m,q,h,j,n,p=this,d=document.createElement("DIV");d.className="flxmap-infowin";o.setTitle(this.markerTitle);j=document.createElement("DIV");j.className="flxmap-marker-title";j.appendChild(document.createTextNode(this.markerTitle));d.appendChild(j);if(this.markerDescription||this.markerLink){j=document.createElement("DIV");j.className="flxmap-marker-link";if(this.markerDescription){q=this.markerDescription.split("\n");for(k=0,m=q.length;k<m;k++){if(k>0){j.appendChild(document.createElement("BR"))}j.appendChild(document.createTextNode(q[k]))}if(this.markerLink){j.appendChild(document.createElement("BR"))}}if(this.markerLink){n=document.createElement("A");n.href=this.markerLink;n.appendChild(document.createTextNode(this.gettext("Click for details")));j.appendChild(n)}d.appendChild(j)}if(this.markerDirections){j=document.createElement("DIV");j.className="flxmap-directions-link";n=document.createElement("A");n.href="#";n.dataLatitude=l[0];n.dataLongitude=l[1];n.dataTitle=this.markerTitle;c(n,"click",function(i){b(i);p.showDirections(this.dataLatitude,this.dataLongitude,this.dataTitle)});n.appendChild(document.createTextNode(this.gettext("Directions")));j.appendChild(n);d.appendChild(j)}if(this.markerDirections||this.markerDirectionsShow){if(!this.dirService){this.dirService=new google.maps.DirectionsService()}if(!this.dirPanel){this.dirPanel=new google.maps.DirectionsRenderer({map:e,panel:document.getElementById(this.markerDirections)})}if(this.markerDirectionsShow){this.showDirections(l[0],l[1],this.markerTitle)}}h=new google.maps.InfoWindow({content:d});if(this.markerShowInfo){h.open(e,o)}google.maps.event.addListener(o,"click",function(){h.open(e,o)})}},showAddress:function(d,e){var f=this,g=new google.maps.Geocoder();this.markerAddress=e;if(this.markerTitle===""){this.markerTitle=e}g.geocode({address:e,region:this.region},function(j,i){if(i==google.maps.GeocoderStatus.OK){var h=j[0].geometry.location,k=[h.lat(),h.lng()];f.showMarker(d,k,k)}else{alert("Map address returns error: "+i)}})},showMap:function(d,e){return new google.maps.Map(document.getElementById(d),{mapTypeId:this.mapTypeId,mapTypeControl:this.mapTypeControl,scaleControl:this.scaleControl,panControl:this.panControl,zoomControl:this.zoomControl,draggable:this.draggable,disableDoubleClickZoom:!this.dblclickZoom,scrollwheel:this.scrollwheel,streetViewControl:this.streetViewControl,navigationControlOptions:this.navigationControlOptions,center:new google.maps.LatLng(e[0],e[1]),zoom:this.zoom})},showDirections:function(h,d,j){var e=document.getElementById(this.markerDirections),g=document.createElement("form"),m=this,i=this.region||"",k,f,l;while(!!(f=e.lastChild)){e.removeChild(f)}f=document.createElement("p");f.appendChild(document.createTextNode(this.gettext("From")+": "));l=document.createElement("input");l.type="text";l.name="from";l.value=this.markerDirectionsDefault;f.appendChild(l);k=document.createElement("input");k.type="submit";k.value=this.gettext("Get directions");f.appendChild(k);g.appendChild(f);e.appendChild(g);l.focus();if(typeof g.elements.from=="undefined"){g.elements.from=l}c(g,"submit",function(p){b(p);var q=this.elements.from.value;if(/\S/.test(q)){var n=(m.markerAddress==="")?new google.maps.LatLng(h,d):m.markerAddress,o={origin:q,region:i,destination:n,travelMode:google.maps.DirectionsTravelMode.DRIVING};m.dirService.route(o,function(t,r){var s=google.maps.DirectionsStatus;switch(r){case s.OK:m.dirPanel.setDirections(t);break;case s.ZERO_RESULTS:alert("No route could be found between the origin and destination.");break;case s.OVER_QUERY_LIMIT:alert("The webpage has gone over the requests limit in too short a period of time.");break;case s.REQUEST_DENIED:alert("The webpage is not allowed to use the directions service.");break;case s.INVALID_REQUEST:alert("Invalid directions request.");break;case s.NOT_FOUND:alert("Origin or destination was not found.");break;default:alert("A directions request could not be processed due to a server error. The request may succeed if you try again.");break}})}});if(l.value){a(g,"submit")}}}})();
|
flexible-map.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Flexible Map
|
4 |
Plugin URI: http://snippets.webaware.com.au/wordpress-plugins/wp-flexible-map/
|
5 |
Description: Embed Google Maps in pages and posts, either by centre coodinates or street address, or by URL to a Google Earth KML file.
|
6 |
-
Version: 1.
|
7 |
Author: WebAware
|
8 |
Author URI: http://www.webaware.com.au/
|
9 |
*/
|
3 |
Plugin Name: Flexible Map
|
4 |
Plugin URI: http://snippets.webaware.com.au/wordpress-plugins/wp-flexible-map/
|
5 |
Description: Embed Google Maps in pages and posts, either by centre coodinates or street address, or by URL to a Google Earth KML file.
|
6 |
+
Version: 1.2.0
|
7 |
Author: WebAware
|
8 |
Author URI: http://www.webaware.com.au/
|
9 |
*/
|
instructions.html
CHANGED
@@ -61,6 +61,10 @@ many different markers all on the one map.</p>
|
|
61 |
<dd>a description of the marker location (can have HTML links), e.g. <em>description="Lorem ipsum dolor sit amet"</em></dd>
|
62 |
<dt>directions</dt>
|
63 |
<dd>show directions link in text bubble; by default, directions will be displayed underneath map, but you can specify the element ID for directions here.</dd>
|
|
|
|
|
|
|
|
|
64 |
<dt>showinfo</dt>
|
65 |
<dd>show the marker's info window when the map loads, from [true, false], e.g. <em>showinfo="true"</em>; default=true</dd>
|
66 |
<dt>locale</dt>
|
61 |
<dd>a description of the marker location (can have HTML links), e.g. <em>description="Lorem ipsum dolor sit amet"</em></dd>
|
62 |
<dt>directions</dt>
|
63 |
<dd>show directions link in text bubble; by default, directions will be displayed underneath map, but you can specify the element ID for directions here.</dd>
|
64 |
+
<dt>showdirections</dt>
|
65 |
+
<dd>show directions when the map loads</dd>
|
66 |
+
<dt>directionsfrom</dt>
|
67 |
+
<dd>initial from: location for directions</dd>
|
68 |
<dt>showinfo</dt>
|
69 |
<dd>show the marker's info window when the map loads, from [true, false], e.g. <em>showinfo="true"</em>; default=true</dd>
|
70 |
<dt>locale</dt>
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ Author URI: http://www.webaware.com.au/
|
|
6 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ZCY9PST8E4GQ
|
7 |
Tags: google, maps, google maps, shortcode, kml
|
8 |
Requires at least: 3.0.1
|
9 |
-
Tested up to: 3.
|
10 |
-
Stable tag: 1.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -73,6 +73,8 @@ Either the center or the address paramater is required. If you provide both, the
|
|
73 |
* **link**: URL to link from the marker title, e.g. *link="http://example.com/"*
|
74 |
* **description**: a description of the marker location (can have HTML links), e.g. *description="Lorem ipsum dolor sit amet"*
|
75 |
* **directions**: show directions link in text bubble; by default, directions will be displayed underneath map, but you can specify the element ID for directions here.
|
|
|
|
|
76 |
* **showinfo**: show the marker's info window when the map loads, from [true, false], e.g. *showinfo="true"*; default=true
|
77 |
* **locale**: use a specific locale (language) for messages like the text of the Directions link, e.g. *locale="nl-BE"*
|
78 |
* **region**: specify region to help localise address searches for street address map and directions, taken from the list of [ccTLD](http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains) (without the .), e.g. *region="au"*
|
@@ -133,6 +135,10 @@ Since version 1.1.0, this plugin now uses localised messages for things like the
|
|
133 |
|
134 |
== Changelog ==
|
135 |
|
|
|
|
|
|
|
|
|
136 |
= 1.1.2 [2012-05-20] =
|
137 |
* fixed: some themes set box-shadow on all images, now forceably fixed for Google Maps images
|
138 |
* added: option to control whether links on KML maps open in new window
|
6 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ZCY9PST8E4GQ
|
7 |
Tags: google, maps, google maps, shortcode, kml
|
8 |
Requires at least: 3.0.1
|
9 |
+
Tested up to: 3.4.1
|
10 |
+
Stable tag: 1.2.0
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
73 |
* **link**: URL to link from the marker title, e.g. *link="http://example.com/"*
|
74 |
* **description**: a description of the marker location (can have HTML links), e.g. *description="Lorem ipsum dolor sit amet"*
|
75 |
* **directions**: show directions link in text bubble; by default, directions will be displayed underneath map, but you can specify the element ID for directions here.
|
76 |
+
* **showdirections**: show directions when the map loads
|
77 |
+
* **directionsfrom**: initial from: location for directions
|
78 |
* **showinfo**: show the marker's info window when the map loads, from [true, false], e.g. *showinfo="true"*; default=true
|
79 |
* **locale**: use a specific locale (language) for messages like the text of the Directions link, e.g. *locale="nl-BE"*
|
80 |
* **region**: specify region to help localise address searches for street address map and directions, taken from the list of [ccTLD](http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains) (without the .), e.g. *region="au"*
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 1.2.0 [2012-06-29] =
|
139 |
+
* added: option showdirections, to show the directions search when the map loads
|
140 |
+
* added: option directionsfrom, to set the default from: location, and immediately search for directions when showdirections is set
|
141 |
+
|
142 |
= 1.1.2 [2012-05-20] =
|
143 |
* fixed: some themes set box-shadow on all images, now forceably fixed for Google Maps images
|
144 |
* added: option to control whether links on KML maps open in new window
|