MapPress Easy Google Maps - Version 2.53.6

Version Description

  • Changed: additional CSS changes to migrate layout to flex
  • Changed: map font set to sans-serif to override themes
  • Fixed: warning in settings when switching map engine type
  • Fixed: warning in PHP log when displaying empty mashups
  • Fixed: mashup sometimes deselected current POI in list for small maps
Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.53.6
Comparing to
See all releases

Code changes from version 2.53.5 to 2.53.6

css/mappress.css CHANGED
@@ -17,24 +17,39 @@
17
  min-width: 200px;
18
  padding: 0px;
19
  position: relative;
 
20
  }
21
 
22
  .mapp-layout * {
23
- box-sizing: border-box;
24
- font-size: 13px;
 
 
 
 
 
25
  }
26
 
 
27
  .mapp-layout .mapp-wrapper {
28
  min-height: 200px;
29
  position: relative;
30
  }
31
 
32
- .mapp-layout .mapp-main {
 
33
  display: flex;
 
34
  position: absolute;
35
  top: 0; left: 0; bottom: 0; right: 0;
36
  }
37
 
 
 
 
 
 
 
38
  .mapp-hidden {
39
  display: none;
40
  }
@@ -46,6 +61,7 @@
46
  -----------------------------------------------------------------------------------
47
  */
48
 
 
49
  .mapp-canvas-panel {
50
  flex: 1;
51
  height: 100%;
@@ -61,6 +77,7 @@
61
  }
62
 
63
  .mapp-canvas img {
 
64
  box-shadow: none !important; /* 2012 */
65
  border-radius: 0px !important; /* 2012 */
66
  visibility: inherit !important;
@@ -70,6 +87,7 @@
70
  background-color: transparent;
71
  margin: 0px;
72
  max-height: none;
 
73
  padding: 0px;
74
  }
75
 
@@ -141,9 +159,6 @@ only screen and (min-device-pixel-ratio: 2) {
141
  text-align: center;
142
  }
143
 
144
- .mapp-list .mapp-items {
145
- }
146
-
147
  .mapp-list .mapp-item {
148
  border-bottom: 1px solid lightgray;
149
  cursor: pointer;
@@ -152,7 +167,7 @@ only screen and (min-device-pixel-ratio: 2) {
152
  }
153
 
154
  .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
155
- background-color: #fafafa;
156
  }
157
 
158
  .mapp-list .mapp-item .mapp-title {
@@ -222,13 +237,12 @@ only screen and (min-device-pixel-ratio: 2) {
222
 
223
  /*
224
  -----------------------------------------------------------------------------------
225
- layouts
226
  -----------------------------------------------------------------------------------
227
  */
228
 
229
  .mapp-left .mapp-list {
230
  border-right: 1px solid lightgray;
231
- /*float: left;*/
232
  height: 100%;
233
  max-width: 45%;
234
  width: 250px;
@@ -247,43 +261,25 @@ only screen and (min-device-pixel-ratio: 2) {
247
  .mapp-header {
248
  background-color: #eee;
249
  border-bottom: 1px solid lightgray;
250
- display: table;
251
- height: 36px;
252
- width: 100%;
253
- }
254
-
255
- .mapp-header > div {
256
- display: table-row;
257
- width: 100%;
258
- }
259
-
260
- .mapp-header > div > div {
261
- display: table-cell;
262
- padding: 0;
263
  }
264
 
265
  .mapp-header-button {
266
  cursor: pointer;
267
- height: 35px;
268
- line-height: 35px;
269
  min-width: 70px;
270
- padding: 0 5px 0 5px;
271
  text-align: center;
272
  text-transform: uppercase;
273
  }
274
 
275
- .mapp-header input[type="text"] {
276
- display: inline;
277
- }
278
-
279
  /*
280
  -----------------------------------------------------------------------------------
281
  Search
282
  -----------------------------------------------------------------------------------
283
  */
284
  .mapp-search {
 
285
  position: relative;
286
- width: 100%;
287
  }
288
 
289
  .mapp-search input.mapp-error {
@@ -348,6 +344,7 @@ input.mapp-aa-input, input.mapp-aa-hint {
348
  }
349
 
350
  .mapp-aa-suggestion span, .mapp-aa-suggestion p {
 
351
  white-space: nowrap !important;
352
  }
353
 
@@ -656,7 +653,6 @@ input.mapp-aa-input, input.mapp-aa-hint {
656
  position: absolute;
657
  top: 10px; left: 10px; bottom: 0; right: 0;
658
  width: 32px;
659
- z-index: 1000;
660
  }
661
 
662
  .mapp-menu {
17
  min-width: 200px;
18
  padding: 0px;
19
  position: relative;
20
+ font-family: sans-serif;
21
  }
22
 
23
  .mapp-layout * {
24
+ box-sizing: border-box;
25
+ font-size: 13px;
26
+ }
27
+
28
+ /* 2019 */
29
+ .mapp-layout input, .mapp-layout button, .mapp-layout select, .mapp-layout textarea {
30
+ font-family: sans-serif;
31
  }
32
 
33
+ /* Responsive wrapper */
34
  .mapp-layout .mapp-wrapper {
35
  min-height: 200px;
36
  position: relative;
37
  }
38
 
39
+ /* Responsive content */
40
+ .mapp-layout .mapp-content {
41
  display: flex;
42
+ flex-direction: column;
43
  position: absolute;
44
  top: 0; left: 0; bottom: 0; right: 0;
45
  }
46
 
47
+ .mapp-layout .mapp-main {
48
+ display: flex;
49
+ flex: 1;
50
+ overflow: hidden;
51
+ }
52
+
53
  .mapp-hidden {
54
  display: none;
55
  }
61
  -----------------------------------------------------------------------------------
62
  */
63
 
64
+ /* Map controls are rendered here, not on the canvas */
65
  .mapp-canvas-panel {
66
  flex: 1;
67
  height: 100%;
77
  }
78
 
79
  .mapp-canvas img {
80
+ background: none;
81
  box-shadow: none !important; /* 2012 */
82
  border-radius: 0px !important; /* 2012 */
83
  visibility: inherit !important;
87
  background-color: transparent;
88
  margin: 0px;
89
  max-height: none;
90
+ max-width: none !important; /* Override gutenberg */
91
  padding: 0px;
92
  }
93
 
159
  text-align: center;
160
  }
161
 
 
 
 
162
  .mapp-list .mapp-item {
163
  border-bottom: 1px solid lightgray;
164
  cursor: pointer;
167
  }
168
 
169
  .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
170
+ background-color: #f6f6f6;
171
  }
172
 
173
  .mapp-list .mapp-item .mapp-title {
237
 
238
  /*
239
  -----------------------------------------------------------------------------------
240
+ Layouts
241
  -----------------------------------------------------------------------------------
242
  */
243
 
244
  .mapp-left .mapp-list {
245
  border-right: 1px solid lightgray;
 
246
  height: 100%;
247
  max-width: 45%;
248
  width: 250px;
261
  .mapp-header {
262
  background-color: #eee;
263
  border-bottom: 1px solid lightgray;
264
+ display: flex;
 
 
 
 
 
 
 
 
 
 
 
 
265
  }
266
 
267
  .mapp-header-button {
268
  cursor: pointer;
 
 
269
  min-width: 70px;
270
+ padding: 5px;
271
  text-align: center;
272
  text-transform: uppercase;
273
  }
274
 
 
 
 
 
275
  /*
276
  -----------------------------------------------------------------------------------
277
  Search
278
  -----------------------------------------------------------------------------------
279
  */
280
  .mapp-search {
281
+ flex: 1;
282
  position: relative;
 
283
  }
284
 
285
  .mapp-search input.mapp-error {
344
  }
345
 
346
  .mapp-aa-suggestion span, .mapp-aa-suggestion p {
347
+ margin: 0 !important;
348
  white-space: nowrap !important;
349
  }
350
 
653
  position: absolute;
654
  top: 10px; left: 10px; bottom: 0; right: 0;
655
  width: 32px;
 
656
  }
657
 
658
  .mapp-menu {
css/mappress_admin.css CHANGED
@@ -22,12 +22,17 @@
22
  vertical-align: middle;
23
  }
24
 
25
- /* WP uses different height, font size & padding on input elements, at different screen resolutions */
26
  .mapp-media input[type="text"], .mapp-media select {
27
  height: auto !important;
28
  padding: 3px 6px 3px 6px;
29
  }
30
 
 
 
 
 
 
31
  .mapp-media-edit-panel {
32
  display:none;
33
  }
22
  vertical-align: middle;
23
  }
24
 
25
+ /* Override WP settings */
26
  .mapp-media input[type="text"], .mapp-media select {
27
  height: auto !important;
28
  padding: 3px 6px 3px 6px;
29
  }
30
 
31
+ .mapp-media select {
32
+ padding-right: 25px;
33
+ vertical-align: top;
34
+ }
35
+
36
  .mapp-media-edit-panel {
37
  display:none;
38
  }
js/mappress.min.js CHANGED
@@ -1 +1 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Map=function(n,t){this.defaults={center:null,editable:null,height:null,initialOpenDirections:null,initialOpenInfo:null,layers:null,mapid:null,mapTypeId:null,metaKey:null,mapOpts:null,name:null,pois:null,postid:null,query:null,sel:null,title:null,width:null,zoom:null};this.highlight=null;this.iw=null;this.places=null;this.poi=null;this.settings=t?t:{};this.templates=null;this.dir_=null;this.div={};this.layers_={};this.map_=null;this.pois_=[];this.xhr_;this.zindex_=0;_.extend(this,this.defaults,n,this.settings)};mapp.Map.prototype={display:function(){var t=this,i;if(this.div.layout=this.sel?n(".mapp-layout",this.sel):n("#"+this.name+"-layout"),n.each(["canvas","controls","dialog","directions","filters","iw","list","menu","search"],function(i,r){t.div[r]=n(".mapp-"+r,t.div.layout)}),this.sanity()===!0){this.templates=this.editable?{loop:"edit-loop",item:"edit-item",popup:"edit-popup"}:this.query?{loop:"map-loop",item:"mashup-item",popup:"mashup-popup"}:{loop:"map-loop",item:"map-item",popup:"map-popup"};mappl10n.options.engine=="leaflet"?(i=_.extend({attribution:'Map data <a href="https://openstreetmap.org">OpenStreetMap<\/a>',minZoom:0,scrollWheelZoom:!1,worldCopyJump:!0,zoomControl:null},this.mapOpts),i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom),this.map_=new L.Map(this.div.canvas.get(0),i),L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(this.map_),this.iw=L.popup(),this.iw.setContent(this.div.iw.get(0))):(this.map_=new google.maps.Map(this.div.canvas.get(0),{mapTypeId:"roadmap",zoom:1}),i=_.extend({backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},minZoom:0,scaleControl:!0,scrollwheel:!1,streetViewControl:!this.editable&&!this.query},this.mapOpts),i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom),this.map_.setOptions(i),this.iw=mappl10n.options.iwType=="ib"||this.editable?new mapp.InfoBox(this):new google.maps.InfoWindow,this.iw.setContent(this.div.iw.get(0)),this.addLayers());this.addStyles();this.addControls();this.addMenu();this.setMapTypeId(this.mapTypeId,!0);this.places=new mapp.Places(n(".mapp-places",this.div.search),{map:t});n(this.places).on("search.mapp",function(n,i){t.search(i)});this.addEvents("click drag",function(){t.close()});this.toggleView("mini",this.div.layout.width()<mappl10n.options.mini);this.div.layout.on("click","[data-mapp-action]",function(i){var r=n(this).attr("data-mapp-action");i.preventDefault();t.action(r,n(this).attr("data-mapp-"+r),n(this))});this.div.filters.on("change",function(){t.ajaxQuery()});n(window).resize(function(){t.resize()});this.places.parse(this.center,function(n){t.center=n&&n.geometry&&n.geometry.location?{lat:n.geometry.location.lat,lng:n.geometry.location.lng}:null;t.query?t.ajaxQuery(function(){t.initCenter()}):(t.setPois(t.pois),t.initCenter())})}},initCenter:function(){var n=this;this.recenter();this.renderList();this.query&&mappl10n.options.search&&!this.editable&&this.addSearchMove();mappl10n.options.engine=="leaflet"?this.initOpen():mapp.event.addListenerOnce(n.map_,"idle",function(){n.initOpen()})},initOpen:function(){var n=this.pois_.length?this.pois_[0]:null;this.initialOpenDirections?this.openDirections(null,n):n&&this.initialOpenInfo&&n.open()},search:function(n){var i,t,f,u,r;n&&n.geometry&&(i=n.geometry.location?n.geometry.location:null,t=n.geometry.viewport?n.geometry.viewport:null,mappl10n.options.engine=="leaflet"?(f=new L.LatLng(i.lat,i.lng),r=f.toBounds(mappl10n.options.radius*1e3)):(u=new google.maps.Circle({center:i,radius:mappl10n.options.radius*1e3}),r=t?new google.maps.LatLngBounds(new google.maps.LatLng(t.sw.lat,t.sw.lng),new google.maps.LatLng(t.ne.lat,t.ne.lng)).union(u.getBounds()):u.getBounds()),this.fitBounds(r),this.setView(i))},load:function(n){_.extend(this,this.defaults,n,this.settings);this.setMapTypeId(this.mapTypeId,!0);this.setPois(this.pois);this.recenter()},action:function(t,i,r){var f=this,u;switch(t){case"center":this.toggleView("menu",!1);this.close();this.recenter();break;case"dir":this.openDirections(null,this.poi);break;case"dir-from":this.openDirections(this.poi,null);break;case"filters-reset":this.div.filters.find(":input").each(function(){this.type=="checkbox"||this.type=="radio"?n(this).prop("checked",!1):n(this).val("")});this.ajaxQuery();break;case"filters-toggle":this.toggleView("filters");break;case"geolocate":this.places.geolocate(function(n){f.search(n)});break;case"layer":this.toggleLayer(i);this.toggleView("menu",!1);break;case"menu-toggle":this.toggleView("menu");break;case"open":u=r.attr("data-mapp-poi");this.open(this.pois_[u]);break;case"show":this.div.layout.show();this.resize();this.initCenter();break;case"view-map":this.toggleView("list",!1);break;case"view-list":this.toggleView("list",!0);break;default:return!0}},dialog:function(n,t){var i=this;n?(this.div.dialog.html(n),this.div.dialog.show(),t&&(clearTimeout(this.dialog.fade),this.dialog.fade=setTimeout(function(){i.dialog(null)},4e3))):this.div.dialog.hide()},addEvents:function(n,t){n=n.split(" ");for(var i=0;i<n.length;i++)mapp.event.addListener(this.map_,n[i],t)},close:function(){mappl10n.options.engine=="leaflet"?this.map_.closePopup():this.iw.close();this.select(null);n(this).triggerHandler("mapp.close")},openDirections:function(n,t){var i=n?n.getAddress():"",r=t?t.getAddress():"";n?n.open():t&&t.open();this.dir_||(this.dir_=new mapp.Directions(this.div.directions,this));this.dir_.open(i,r)},sanity:function(){if(!this.div.canvas.length)return mapp.lib.log("MapPress: Missing map name or container for map: "+this.name);if(mappl10n.options.autoupdate==="tc")return mapp.lib.log("Maps API missing (800001)");if(typeof _=="undefined")return mapp.lib.alert("ERROR: underscore.js not loaded. Check cacheing / optimizing plugins.");if(mappl10n.options.engine=="leaflet"){if(typeof L=="undefined")return mapp.lib.alert("ERROR: Unable to load Leaflet")}else{if(typeof google=="undefined")return mapp.lib.alert("ERROR: Google Maps API not loaded");n(document).ready(function(){n('script[src*="https://maps.googleapis.com/maps/api/js?v=3"]').length>1&&mapp.lib.alert("ERROR: Google Maps API key loaded multiple times, please see MapPress FAQ.")})}return!0},select:function(t){if(n("[data-mapp-poi]",this.div.list).removeClass("mapp-selected"),t){var r=n.inArray(t,this.pois_),i=n('[data-mapp-poi="'+r+'"]',this.div.list);i.addClass("mapp-selected");mapp.lib.scrollTo(this.div.list,i);t.setZIndex(++this.zindex_)}this.poi=t},setHighlight:function(n){this.highlight&&(mappl10n.options.engine=="leaflet"?this.highlight.remove():this.highlight.setMap(null));n&&(mappl10n.options.engine=="leaflet"?this.highlight=new L.Marker(n.getPosition()).addTo(this.map_):(this.highlight=new google.maps.Marker({position:n.getPosition()}),this.highlight.setMap(this.map_)))},getMap:function(){return this.map_},renderList:function(){var i=this.getBounds(),r=0,u=this,t;if(!this.editable)for(t=0;t<this.pois_.length;t++)this.pois_[t].visible=this.pois_[t].type!="kml",this.query&&i&&!i.contains(this.pois_[t].getPosition())&&(this.pois_[t].visible=!1),r+=this.pois_[t].visible;this.div.list.html(mapp.lib.template(this.templates.loop,{map:this,pois:this.pois_,count:r}));this.editable&&n(".mapp-items",u.sel).sortable({axis:"y",cursor:"move",delay:200,update:function(){u.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-poi"}))}})},getPois:function(){return this.pois_},insertPoi:function(n){var t=this;this.pois_.unshift(n);n.setMap(this);t.renderList();this.select(n)},removePoi:function(t){var r=this,i=n.inArray(t,this.pois_);i!=-1&&(this.pois_[i].setMap(null),this.pois_.splice(i,1),r.renderList())},resetPois:function(){for(i=0;i<this.pois_.length;i++)this.pois_[i].setMap(null);this.pois_=[];this.zindex_=0},setPois:function(n){var t,i;if(this.resetPois(),n){for(t=0;t<n.length;t++)i=new mapp.Poi(n[t]),this.pois_.push(i),i.id=this.pois_.length-1,i.setMap(this),i.setZIndex(this.zindex_+n.length-1-t);this.zindex_+=n.length-1}this.renderList()},sortPois:function(n){for(var r,t=Array(),i=0;i<n.length;i++){if(r=parseInt(n[i]),isNaN(r))return!1;t.push(this.pois_[r])}if(t.length!=this.pois_.length)return!1;this.pois_=t;this.renderList()},open:function(t,i){var r=null,u;if(this.close(),this.select(t),mappl10n.options.mashupClick!="poi"&&t.postid&&t.url){mappl10n.options.mashupClick=="post"?window.location.assign(t.url):window.open(t.url);return}this.toggleView("list",!1);i&&i.featureData?r=i.featureData:i&&i.propagatedFrom&&i.propagatedFrom.feature&&i.propagatedFrom.feature.properties&&(r=i.propagatedFrom.feature.properties);this.div.iw.html(t.render("popup",r));mappl10n.options.engine=="leaflet"?(this.iw.setLatLng(t.getPosition()),this.iw.options.offset=t.getAnchorPoint(),this.map_.openPopup(this.iw)):(u=new google.maps.MVCObject,u.setValues({position:t.getPosition(i),anchorPoint:t.getAnchorPoint(i)}),this.iw.open(this.map_,u));n(this).triggerHandler("mapp.open",t)},renderMenu:function(){var t=this;for(layer in this.layers_)this.layers_[layer].getMap()&&n('[data-mapp-layer="'+layer+'"]',this.div.layout).addClass("mapp-active")},addStyles:function(){var u=this,l,f,r,i;if(mappl10n.options.engine=="leaflet"){if(this.editable){for(l=[],f=L.control.layers(),r=0;r<mappl10n.options.baseLayers.length;r++){var o=mappl10n.options.baseLayers[r],s=mappl10n.options.providers[o.provider],h=n.extend({},s,o);f.addBaseLayer(L.tileLayer(s.url,h),h.label)}mappl10n.options.baseLayers.length>1&&f.addTo(this.map_)}this.map_.on("baselayerchange",function(n){u.mapTypeId=n.layer.options.name})}else{var t=mappl10n.options.styles?mappl10n.options.styles:[],e=mappl10n.options.style,c=["roadmap","satellite","terrain","hybrid"];if(e&&typeof t[e]!="undefined"&&this.map_.setOptions({styles:t[e]}),this.editable){for(i in t)this.map_.mapTypes.set(i,new google.maps.StyledMapType(t[i],{name:i})),c.push(i);this.map_.setOptions({mapTypeControlOptions:{mapTypeIds:c,position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}})}else this.mapTypeId&&typeof t[this.mapTypeId]!="undefined"&&this.map_.setOptions({styles:t[this.mapTypeId]});mapp.event.addListener(this.map_,"maptypeid_changed",function(){u.mapTypeId=u.map_.getMapTypeId()})}},addControls:function(){var n=this;this.div.controls.html(mapp.lib.template("map-controls",{map:this}))},addLayers:function(){var u,i,t,r;for(this.layers_={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer},u=n.makeArray(this.layers),i=0;i<u.length;i++)t=n.trim(u[i]),r=t.split(".").pop(),this.layers_[t]?this.toggleLayer(t):r=="kml"||r=="kmz"?this.layers_[t]=new google.maps.KmlLayer({map:this.map_,preserveViewport:!0,url:t}):r=="json"&&(this.layers_[t]=new google.maps.Data({map:this.map_}).loadGeoJson(t))},addMenu:function(){var t=this;n("body").on("click",function(i){var r=n(i.target),u=r.attr("data-mapp-action");r==t.div.filters||u=="filters-toggle"||r.closest(t.div.filters).length||t.toggleView("filters",!1);r==t.div.menu||u=="menu-toggle"||r.closest(t.div.menu).length||t.toggleView("menu",!1)})},toggleLayer:function(t,i){var r=this;i=typeof i!="undefined"?i:this.layers_[t].getMap()==null;n.each(["traffic","bicycling","transit"],function(n,t){r.layers_[t].setMap(null)});i&&this.layers_[t].setMap(this.map_)},togglePois:function(n){n=!!n;for(var t=0;t<this.pois_.length;t++)this.pois_[t].setVisible(n)},toggleView:function(n,t){t=typeof t=="undefined"?!this.div.layout.hasClass("mapp-view-"+n):t;this.div.layout.toggleClass("mapp-view-"+n,t);n=="menu"&&t&&this.renderMenu();n=="directions"&&this.resize()},resize:function(){var n=this.getCenter();this.toggleView("mini",this.div.layout.width()<mappl10n.options.mini);mappl10n.options.engine=="leaflet"?this.map_.invalidateSize():mapp.event.trigger(this.map_,"resize");n&&this.setView(n)},recenter:function(){var t=this.center&&this.center.lat&&this.center.lng?this.center:null,n=this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null,i,r;if(t&&!n&&this.query){this.search({geometry:{location:{lat:t.lat,lng:t.lng}}});return}if(t){this.setView(t,n?n:1);return}if(this.pois_.length==0){this.setView({lat:0,lng:0},n?n:1);return}if(this.pois_.length==1){this.pois_[0].center(n);return}for(bounds=mappl10n.options.engine=="leaflet"?new L.LatLngBounds:new google.maps.LatLngBounds,i=0;i<this.pois_.length;i++)r=this.pois_[i].getBounds(),bounds=r?mappl10n.options.engine=="leaflet"?bounds.extend(r):bounds.union(r):bounds.extend(this.pois_[i].getPosition());n?this.setView(bounds.getCenter().toJSON(),n):this.fitBounds(bounds)},toJSON:function(){var n;for(this.pois=[],n=0;n<this.pois_.length;n++)this.pois.push(this.pois_[n].toJSON());return{center:this.center,height:this.height,mapid:this.mapid,mapTypeId:this.mapTypeId,metaKey:this.metaKey,pois:this.pois,title:this.title,width:this.width,zoom:this.zoom}},ajaxSave:function(n){var t=this,i=JSON.stringify(this),r=!this.mapid||!this.postid?mappl10n.options.postid:this.postid;mapp.lib.ajax({type:"POST",data:{action:"mapp_save",map:i,postid:r},callback:function(i){i.status=="OK"&&(t.mapid||(t.mapid=i.data.mapid),n())}})},fitBounds:function(n,t){var t=mappl10n.options.engine=="leaflet"&&t?{paddingTopLeft:[t.left,t.top],paddingBottomRight:[t.right,t.bottom]}:t;return this.map_.fitBounds(n,t)},getBounds:function(){try{return this.map_.getBounds()}catch(n){return null}},getCenter:function(){try{return this.map_.getCenter()}catch(n){return null}},getMapTypeId:function(n){return mappl10n.options.engine=="leaflet"?"roadmap":this.map_.getMapTypeId(n)},setMapTypeId:function(t){var s=this,i,r,e,u,o,f;if(mappl10n.options.engine=="leaflet")for(this.map_.eachLayer(function(n){s.map_.removeLayer(n)}),t=!this.editable&&mappl10n.options.style&&t=="streets"?mappl10n.options.style:t,t=_.findIndex(mappl10n.options.baseLayers,{name:t})>=0?t:mappl10n.options.baseLayers[0].name,i=0;i<mappl10n.options.baseLayers.length;i++)r=mappl10n.options.baseLayers[i],e=mappl10n.options.providers[r.provider],r.name==t&&(u=n.extend({},e,r),o=L.tileLayer(u.url,u),o.addTo(this.map_));else f=n.inArray(t,["roadmap","satellite","terrain","hybrid"])!=-1,t=this.editable?f||typeof mappl10n.options.styles[t]!="undefined"?t:"roadmap":f?t:"roadmap",this.map_.setMapTypeId(t)},setView:function(n,t,i){mappl10n.options.engine=="leaflet"?(t==null&&(t=this.map_.getZoom()?this.map_.getZoom():0),this.map_.setView(n,t,i)):(n=n&&!n.toJSON?{lat:parseFloat(n.lat),lng:parseFloat(n.lng)}:n,t=t?parseInt(t):null,n&&this.map_.setCenter(n),t&&this.map_.setZoom(t))}};mapp.Map.ajaxGet=function(n,t,i){mapp.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:n},callback:function(n){if(n.status=="OK"){var r=new mapp.Map(n.data.map,t);i(r)}}})};mapp.Map.ajaxDelete=function(n,t){mapp.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:n},callback:function(n){n.status=="OK"&&t&&t()}})}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Directions=function(t,i){this.sel=n(t);this.map=i;this.directionsRenderer=null;this.directionsService=null;this.placesService=null;var r=this;this.sel.on("keydown",function(n){n.which==13?(r.getDirections(),n.preventDefault()):n.which==27&&r.close()});this.sel.on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action"),u=n(".mapp-dir-daddr",r.sel).val(),f=n(".mapp-dir-saddr",r.sel).val();t.preventDefault();switch(i){case"dir-cancel":r.close();break;case"dir-get":r.getDirections();break;case"dir-myloc":r.map.places.geolocate(function(t){n(".mapp-dir-saddr",r.sel).val(t.name);r.getDirections()});break;case"dir-swap":n(".mapp-dir-saddr",r.sel).val(u);n(".mapp-dir-daddr",r.sel).val(f);r.getDirections()}});this.open=function(t,i){if(mappl10n.options.directions=="google"){this.openGoogle(t,i);return}this.map.toggleView("directions",!0);n(".mapp-dir-addr",this.sel).removeClass("mapp-error");n(".mapp-dir-saddr",this.sel).val(t);n(".mapp-dir-daddr",this.sel).val(i);n(".mapp-dir-get",this.sel).focus();n(".mapp-dir-saddr",this.sel).focus()};this.close=function(){this.map.toggleView("directions",!1);this.directionsRenderer&&(this.directionsRenderer.setPanel(null),this.directionsRenderer.getMap()&&(this.directionsRenderer.setMap(null),this.map.togglePois(!0)))};this.getDirections=function(){this.map.close();this.openGoogle(n(".mapp-dir-saddr",this.sel).val(),n(".mapp-dir-daddr",this.sel).val());return};this.openGoogle=function(n,t){var i=mappl10n.options.directionsServer;i.toLowerCase().indexOf("http")==-1&&(i="https://"+i);i+="?saddr="+encodeURIComponent(n);i+="&daddr="+encodeURIComponent(t);window.open(i)}}}(jQuery);mapp=window.mapp||{};mapp.geocoders={};+function(n){mapp.geocoders.Algolia=function(n){this.map=n;this.places=algoliasearch.initPlaces()};mapp.geocoders.Algolia.prototype={geocode:function(n,t){var i=this;this.getPredictions(n,function(i){i&&i.hits.length?t({formatted_address:i.hits[0].locale_names[0],name:n,geometry:{location:{lat:i.hits[0]._geoloc.lat,lng:i.hits[0]._geoloc.lng}}}):t(null)})},getDetails:function(n,t){if(mappl10n.options.geocoder=="nominatim")return this.getNominatimDetails(n,t);if(mappl10n.options.geocoder=="mapbox"&&mappl10n.options.mapbox)return this.getMapboxDetails(n,t);t({formatted_address:n.value,name:n.name,geometry:{location:n.latlng}});return},getNominatimDetails:function(t,i){url="https://nominatim.openstreetmap.org/search?format=json&limit=1&q="+encodeURIComponent(t.value);url=mappl10n.options.country?url+"&countrycodes="+mappl10n.options.country.toLowerCase():url;url=mappl10n.options.language?url+"&accept-language="+mappl10n.options.language.toLowerCase():url;n.getJSON(url,function(n){if(n&&n.length){var r=n[0],u=r.boundingbox&&r.boundingbox.length==4?{sw:{lat:r.boundingbox[0],lng:r.boundingbox[2]},ne:{lat:r.boundingbox[1],lng:r.boundingbox[3]}}:null;i({formatted_address:r.display_name,name:t.name,geometry:{location:{lat:r.lat,lng:r.lon},viewport:u}})}else i({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})})},getMapboxDetails:function(t,i){url="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURIComponent(t.value)+".json?access_token="+mappl10n.options.mapbox;url=mappl10n.options.country?url+"&country="+mappl10n.options.country.toLowerCase():url;url=mappl10n.options.language?url+"&language="+mappl10n.options.language.toLowerCase():url;n.getJSON(url,function(n){if(n&&n.features&&n.features.length>0){var r=n.features[0],u=r.bbox&&r.bbox.length==4?{sw:{lat:r.bbox[1],lng:r.bbox[0]},ne:{lat:r.bbox[3],lng:r.bbox[2]}}:null;i({formatted_address:r.place_name,name:t.name,geometry:{location:{lat:r.center[1],lng:r.center[0]},viewport:u}})}else i({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})})},getPredictions:function(n,t){this.places.search({query:n,language:mappl10n.options.language},function(n,i){n||!i?t(null):t(i)})}}}(jQuery);+function(n){mapp.geocoders.Google=function(t){this.map=t;this.token=null;this.types=this.map.editable?null:["geocode"];var i=n('<div style="display:none">').appendTo("body");this.placesService=new google.maps.places.PlacesService(i.get(0));this.autocompleteService=new google.maps.places.AutocompleteService;i.remove()};mapp.geocoders.Google.prototype={geocode:function(t,i){var r=this;this.getPredictions(t,function(t){t&&n.isArray(t)?r.getDetails(t[0],function(n){i(n)}):i(null)})},getDetails:function(n,t){this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;this.token=null;var i={placeId:n.place_id,sessionToken:this.token};this.placesService.getDetails(i,function(n,i){if(i=="OK"&&n&&n.geometry){if(n.geometry.location&&(n.geometry.location=n.geometry.location.toJSON()),n.geometry.viewport){var r=n.geometry.viewport.toJSON();n.geometry.viewport={sw:{lat:r.south,lng:r.west},ne:{lat:r.north,lng:r.east}}}t(n)}else t(null)})},getPredictions:function(n,t){var i,r;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;i=this.map.getMap().getBounds();i=i?i:new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180));r={input:n,bounds:i,sessionToken:this.token,types:this.types};this.autocompleteService.getPlacePredictions(r,function(n,i){i=="OK"&&n&&n.length?t(n):(i==google.maps.places.PlacesServiceStatus.REQUEST_DENIED?alert("Google Maps API Key error: please enable the Places API in the Google Developer Console."):i==google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT&&alert("Google Maps API Key has exceeded its query limit"),t(null))})}}}(jQuery);mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){var n="https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png";return mappl10n.options.engine=="leaflet"?L.icon({iconUrl:n,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-32]}):{url:n}};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};+function(n){mapp.InfoBox=function(t,i){var f=n.extend({border:20},i),u=null,r=null,o,e=this;r=n('<div class="mapp-ib-wrapper" tabindex="0"><div class="mapp-ib" tabindex="0"><\/div><div class="mapp-ib-tip"><\/div><\/div>').appendTo(t.getMap().getDiv());jQuery(window).resize(function(){e.close()});r.on("keydown",function(n){n.which==27&&e.close()});r.on("click",".mapp-close",function(){e.close()});this.getContent=function(){return n(".mapp-ib",r)};this.setContent=function(t){n(".mapp-ib",r).empty().append(t)};this.open=function(n,t){u=t;this.setMap(n)};this.onAdd=function(){o=!1;var t=n(":input",r);r.show();t.length?t.first().focus():r.focus();google.maps.event.trigger(e,"domready")};this.draw=function(){var l=this.getMap(),a=n(".mapp-ib-body",r),s=this.getProjection().fromLatLngToContainerPixel(u.position),t,h,c,i,e;o||(o=!0,t={width:n(":first-child",l.getDiv()).width(),height:n(":first-child",l.getDiv()).height()},r.css({"max-height":"9999px",left:0,bottom:0,top:"auto",right:"auto"}),h=r.outerWidth(!0),c=r.outerHeight(!0),c>t.height+u.anchorPoint.y-2*f.border&&(c=t.height+u.anchorPoint.y-2*f.border,r.css({"max-height":c+2})),i=s.x,e=s.y,i+h/2>t.width&&(i=t.width-h/2),i-h/2<0&&(i=h/2),e-c+u.anchorPoint.y<f.border&&(e=c-u.anchorPoint.y+f.border),e>t.height&&(e=t.height),(s.x-i||s.y-e)&&l.panBy(s.x-i,s.y-e),r.css({left:i-h/2,bottom:t.height-e-u.anchorPoint.y}))};this.close=function(){r.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))};this.onRemove=function(){r.hide()}};mappl10n.options.engine!="leaflet"&&(mapp.InfoBox.prototype=new google.maps.OverlayView)}(jQuery);mapp=window.mapp||{};+function(n){mapp.lib={ajax:function(t){var i=this;return n.extend({type:"GET",data:null,spinner:null,callback:n.noop},t),t.spinner&&t.spinner.show(),n.ajax({type:t.type,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,r,u){if(t.spinner&&t.spinner.hide(),n.status!="OK"){var f=typeof n=="object"?n.status:n;i.alert("AJAX ERROR\r\nResponse="+f+" TextStatus="+r+"\r\nResponseText="+u.responseText)}if(n.output){i.log("AJAX Output\r\n"+n.output);return}t.callback&&t.callback(n,u)},error:function(n,r,u){(t.spinner&&t.spinner.hide(),r!="cancel")&&typeof u!="undefined"&&u!=""&&i.alert("AJAX ERROR\r\nTextStatus="+r+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},alert:function(n){mappl10n.options.admin||mappl10n.options.debug?alert(n):window.console&&console.error(n)},jqVersionCheck:function(t){if(typeof n=="undefined"||typeof t=="undefined")return!1;for(t=t.split("."),v=n.fn.jquery.split("."),i=0;i<t.length;i++){var r=parseInt(t[i]),u=typeof v[i]!="undefined"?parseInt(v[i]):0;if(u!=r)return u>r}return!0},log:function(n){window.console&&console.error(n)},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var i=n.scrollTop(),u=n.height(),r=i+t.position().top,f=r+t.outerHeight(!0);r<i?n.scrollTop(r):f>i+u&&n.scrollTop(f-u)}},template:function(t,i){if(mapp.lib.templates=mapp.lib.templates?mapp.lib.templates:{},!mapp.lib.templates[t]){var r=mappl10n.options.templates?mappl10n.options.template[t]:n("#mapp-tmpl-"+t).html();if(r)mapp.lib.templates[t]=_.template(r.replace(/[\n\r\t]/g,""),null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});else return""}return mapp.lib.templates[t](i)}};mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("jQuery version is too old: "+n.fn.jquery);n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-layout",r).each(function(){var i=n(this).find(".mapp-canvas").attr("id"),t=window[i];t.resize();t.recenter()})})}(jQuery);+function(){mappl10n.options.engine=="leaflet"&&(L.LatLng.prototype.toJSON=function(){return{lat:this.lat,lng:this.lng}},L.LatLngBounds.prototype.toJSON=function(){return{south:this.getSouth(),west:this.getWest(),north:this.getNorth(),east:this.getEast()}},L.LatLng.prototype.toUrlValue=function(){return Math.round(this.lat*1e6)/1e6+", "+Math.round(this.lng*1e6)/1e6});mapp.event={addListener:function(n,t,i){if(mappl10n.options.engine=="leaflet")n.on(t,i);else google.maps.event.addListener(n,t,i)},addListenerOnce:function(n,t,i){if(mappl10n.options.engine=="leaflet")n.once(t,i);else google.maps.event.addListenerOnce(n,t,i)},clearInstanceListeners:function(n){mappl10n.options.engine=="leaflet"?n.off():google.maps.event.clearInstanceListeners(n)},clearListeners:function(n,t){mappl10n.options.engine=="leaflet"?n.off(t):google.maps.event.clearListeners(n,"rightclick")},trigger:function(n,t,i){mappl10n.options.engine=="leaflet"?n.fire(t,i):google.maps.event.trigger(n,t,i)}}}(jQuery);mapp=window.mapp||{};jQuery.fn.AlgoliaAutocomplete=jQuery.fn.autocomplete.noConflict();+function(n){mapp.Places=function(t,i){var r=this;this.sel=n(t);this.opts=n.extend({map:null},i);this.geocoder=mappl10n.options.engine=="leaflet"?new mapp.geocoders.Algolia(this.opts.map):new mapp.geocoders.Google(this.opts.map);this.sel.on("keydown",function(t){if(t.which==13){t.preventDefault();var i=r.parseLatLng(r.sel.val());i&&(n(r).triggerHandler("search.mapp",i),r.sel.AlgoliaAutocomplete("close"),t.stopImmediatePropagation());r.sel.val().substring(0,4)=="http"&&(n(r).triggerHandler("search.mapp",r.sel.val()),r.sel.AlgoliaAutocomplete("close"),t.stopImmediatePropagation())}});this.autocomplete();this.sel.focus()};mapp.Places.prototype={parse:function(t,i){var f=this,u=t&&t.name?n.trim(t.name):n.trim(t),r;if(!u){i(null);return}if(u=="user"){this.geolocate(function(n){i(n)});return}if(t&&t.geometry){i(t);return}if(r=this.parseLatLng(t),r){i(r);return}this.geocoder.geocode(t,function(n){i(n)})},parseLatLng:function(t){var i,e,r,u,f;return t.lat&&t.lng?i=t:(e=t&&t.name?n.trim(t.name):n.trim(t),r=e.split(","),r.length==2&&(u=parseFloat(r[0]),f=parseFloat(r[1]),isNaN(u)||isNaN(f)||(i={lat:u,lng:f}))),i?{name:i.lat+", "+i.lng,geometry:{location:i}}:null},geolocate:function(n){var t=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){var i={lat:t.coords.latitude,lng:t.coords.longitude};n({name:i.lat+", "+i.lng,geometry:{location:i}})},function(t){var i=t&&t.message?" : "+t.message:"";alert(mappl10n.no_geolocate+i);n(null)},{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4})},autocomplete:function(){var t=this,r,i,u;this.sel.on("autocomplete:selected",function(i,r){t.geocoder.getDetails(r,function(i){t.parse(i,function(i){i&&n(t).triggerHandler("search.mapp",i)})})});r={empty:'<div class="list-group search-results-dropdown"><div class="list-group-item">'+mappl10n.no_results+"<\/div><\/div>",header:'<div class="list-group search-results-dropdown">'};mappl10n.options.engine=="leaflet"?(i={algoliasearch:algoliasearch,templates:r},mappl10n.options.country&&(i.countries=[mappl10n.options.country]),mappl10n.options.language&&(i.language=mappl10n.options.language),u=placesAutocompleteDataset(i)):u={display:"description",source:function(n,i){t.geocoder.getPredictions(n,function(n){matches=n;i(matches)})},templates:r};this.sel.AlgoliaAutocomplete({autoselect:!0,cssClasses:{prefix:"mapp-aa"},debug:!1,hint:!0,highlight:!0,minLength:1},u)}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Poi=function(t){var u,f,r,o,i,e,h,s;if(this.defaults={address:null,body:null,iconid:null,kml:null,map:null,overlay:null,postid:null,props:null,title:"",url:null,type:null,viewport:null},n.extend(this,this.defaults,t),t&&t.correctedAddress&&(this.address=t.correctedAddress),mappl10n.options.engine=="leaflet"&&this.isPoly()&&(this.type=null),t.viewport&&t.viewport.sw&&t.viewport.ne&&(u=t.viewport.sw,f=t.viewport.ne,this.viewport=mappl10n.options.engine=="leaflet"?new L.LatLngBounds(L.latLng(u.lat,u.lng),L.latLng(f.lat,f.lng)):new google.maps.LatLngBounds(new google.maps.LatLng(u.lat,u.lng),new google.maps.LatLng(f.lat,f.lng))),r=[],o=[],!t.overlay)switch(this.type){case"polygon":if(t.poly&&t.poly.paths)for(i=0;i<t.poly.paths.length;i++){for(r=[],e=0;e<t.poly.paths[i].length;e++)r.push(new google.maps.LatLng(t.poly.paths[i][e].lat,t.poly.paths[i][e].lng));o.push(new google.maps.MVCArray(r))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(t.poly);break;case"polyline":if(t.poly&&t.poly.path)for(i=0;i<t.poly.path.length;i++)r.push(new google.maps.LatLng(t.poly.path[i].lat,t.poly.path[i].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(r)});this.setColors(t.poly);break;case"circle":h=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Circle({center:h,radius:parseFloat(t.poly.radius)});this.setColors(t.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(t.poly);break;case"kml":s=t.kml&&t.kml.url?t.kml.url:"";this.overlay=mappl10n.options.engine=="leaflet"?omnivore.kml(s):new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:this.overlay=mappl10n.options.engine=="leaflet"?L.marker([t.point.lat,t.point.lng],{title:t.title}):new google.maps.Marker({position:new google.maps.LatLng(t.point.lat,t.point.lng),title:t.title})}t.type||this.setIcon(t.iconid)};mapp.Poi.prototype={toJSON:function(){var n={address:this.address,body:this.body,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},u=this.getPosition(),i,t,r;if(n.point=u.toJSON(),i=this.viewport?this.viewport:this.getBounds(),i&&(t=i.toJSON(),n.viewport={sw:{lat:t.south,lng:t.west},ne:{lat:t.north,lng:t.east}}),this.type=="kml"&&(n.kml=this.kml),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push(t.toJSON())});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push(n.toJSON())});n.poly.paths.push(i)});break;case"rectangle":r=this.overlay.getBounds();n.viewport={sw:r.getSouthWest().toJSON(),ne:r.getNorthEast().toJSON()}}}return n},setMap:function(n){var t=this;if(this.map=n,mapp.event.clearInstanceListeners(this.overlay),n==null){mappl10n.options.engine=="leaflet"?this.overlay.remove():this.overlay.setMap(null);return}this.type=="kml"&&(mappl10n.options.engine=="leaflet"?(mapp.event.addListenerOnce(this.overlay,"ready",function(){t.viewport=t.overlay.getBounds()}),mapp.event.addListenerOnce(this.overlay,"error",function(){alert(mappl10n.kml_error)})):(mapp.event.addListener(this.overlay,"defaultviewport_changed",function(){t.viewport=t.overlay.getDefaultViewport()}),mapp.event.addListener(this.overlay,"status_changed",function(){var n=t.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)})));mapp.event.addListener(this.overlay,"click",function(n){t.open(n)});this.setEditable(this.map.editable);mappl10n.options.engine=="leaflet"?this.overlay.addTo(n.getMap()):this.overlay.setMap(n.getMap())},setEditable:function(n){var t=this;this.type!="kml"&&(mappl10n.options.engine=="leaflet"?this.overlay.options.draggable=n:this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),mapp.event.clearListeners(this.overlay,"rightclick"),mapp.event.clearListeners(this.overlay,"dragstart"),n&&(mapp.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.close()}),(this.type=="polygon"||this.type=="polyline")&&mapp.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},setZIndex:function(n){mappl10n.options.engine=="leaflet"?this.type||this.overlay.setZIndexOffset(n):this.overlay.set("zIndex",n)},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.iconid=n,mappl10n.options.engine=="leaflet"?this.overlay.setIcon(mapp.Icons.get(n)):(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n))))},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},setTemplateColors:function(n,t,i){var r=this.type=="polyline"?{strokeColor:n,strokeOpacity:t/100,strokeWeight:i}:{fillColor:n,fillOpacity:t/100,strokeColor:n,strokeWeight:i,strokeOpacity:1};this.setColors(r)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},getTemplateColors:function(){var n=this.getColors();return this.type=="polyline"?{color:n.strokeColor,opacity:n.strokeOpacity*100,weight:n.strokeWeight}:{color:n.fillColor,opacity:n.fillOpacity*100,weight:n.strokeWeight}},center:function(n){var t=this.getBounds();if(typeof n=="number"){this.map.setView(this.getPosition(),n);return}if(!t){this.map.setView(this.getPosition(),parseInt(mappl10n.options.poiZoom));return}this.map.fitBounds(t);this.map.setView(this.getPosition(),n)},open:function(n){this.map.open(this,n)},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=mappl10n.options.engine=="leaflet"?this.overlay.getBounds().isValid()?this.overlay.getBounds():null:this.overlay.getDefaultViewport();n=n?n:this.viewport;break;default:return this.viewport}return n},getPosition:function(n){if(!this.type)return mappl10n.options.engine=="leaflet"?this.overlay.getLatLng():this.overlay.getPosition();if(this.type=="kml"&&n&&n.latLng)return n.latLng;var t=this.getBounds();return t?t.getCenter():mappl10n.options.engine=="leaflet"?new L.latLng(0,0):new google.maps.LatLng(0,0)},getAddress:function(){return this.address?this.address:this.getPosition().toUrlValue()},getAnchorPoint:function(n){var t=this.isPoly()?"poly":this.type;switch(t){case"kml":return mappl10n.options.engine=="leaflet"?[0,0]:n&&n.pixelOffset?new google.maps.Point(n.pixelOffset.width,n.pixelOffset.height):new google.maps.Point(0,0);case"poly":return mappl10n.options.engine=="leaflet"?[0,0]:new google.maps.Point(0,0);default:return mappl10n.options.engine=="leaflet"?this.overlay.options.icon.options.popupAnchor?this.overlay.options.icon.options.popupAnchor:[0,-32]:typeof this.overlay.anchorPoint!="undefined"?this.overlay.anchorPoint:new google.maps.Point(0,-32)}},render:function(n,t){var i=_.extend(this,{icon:mapp.Icons.getUrl(this.iconid)});return t&&(i.body=t.description,i.title=t.name),mapp.lib.template(this.map.templates[n],{poi:i,colors:this.getTemplateColors()})}}}(jQuery);mapp=window.mapp||{};mapp.widgets={};+function(n){mapp.widgets.Grid=function(t,i){this.el=n(t);this.options=jQuery.extend({action:null,sortable:!1},i);var r=this;this.table=n("table",this.el);this.template=n("script",this.el).html().replace(new RegExp("'","g"),'"');this.el.on("click",function(t){var u=n(t.target),i=u.attr("data-mapp-action");i&&(r[i](t),t.preventDefault())})};mapp.widgets.Grid.prototype={add:function(){this.table.show();var t=n(this.template).appendTo(this.table);n(":input:eq(0)",t).focus()},remove:function(t){var i=n(t.target).closest("tr").remove();n("tbody > tr",this.table).length||this.table.hide()}}}(jQuery);+function(n){mapp.widgets.Popup=function(t,i){var r,u;if(this.activeToggle=null,this.content=t,this.el=null,r=this,this.options=n.extend({max:!1,modal:!1,position:null,toggle:null},i),this.options.modal?this.el=this.content.addClass("mapp-popup-fixed"):(this.el=n('<div class="mapp-popup">'),this.setContent(t)),this.el.attr("tabindex",0),this.options.max&&this.el.addClass("mapp-popup-max"),this.el.hide(),!this.options.modal)n(document).on("click.mapp.popup",function(t){n.contains(r.el.get(0),t.target)||r.el.get(0)==t.target||r.close()});if(this.options.toggle){u=typeof this.options.toggle=="string"?this.options.toggle:this.options.toggle.selector;n(document).on("click",u,function(t){r.activeToggle=n(this);r.open();t.stopPropagation()})}this.el.on("click",".mapp-close",function(){r.close()});this.el.on("keydown",function(n){n.which==27&&r.close()});return this};mapp.widgets.Popup.prototype={close:function(){this.el&&this.el.is(":visible")&&(this.backdrop&&(this.backdrop.remove(),n("body").removeClass("mapp-popup-modal")),this.el.hide(),this.activeToggle&&this.activeToggle.focus(),this.el.trigger("closed.mapp.popup"))},open:function(){var t=this;this.options.modal||this.el.parent().length||this.el.appendTo("body");this.el.show();this.options.modal?(this.backdrop=n('<div class="mapp-popup-backdrop"><\/div>'),this.el.after(this.backdrop),n("body").addClass("mapp-popup-modal")):this.el.position(n.extend({my:"center bottom",at:"center top-5",of:this.activeToggle,collision:"flipfit"},this.options.position));this.el.focus();this.el.trigger("open.mapp.popup")},setContent:function(n){this.el.empty();this.el.append('<span class="mapp-close">').append(n)},toggle:function(){this.el.is(":visible")?this.close():this.open()}}}(jQuery);+function(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop();window[n.name]=new mapp.Map(n);window[n.name].display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappEditor=new mapp.Media:mapp.load()
1
+ var mapp=window.mapp||{};+function(n){mapp.Map=function(n,t){this.defaults={center:null,editable:null,height:null,initialOpenDirections:null,initialOpenInfo:null,layers:null,mapid:null,mapTypeId:null,metaKey:null,mapOpts:null,name:null,pois:null,postid:null,query:null,sel:null,title:null,width:null,zoom:null};this.highlight=null;this.iw=null;this.places=null;this.poi=null;this.settings=t?t:{};this.templates=null;this.dir_=null;this.div={};this.layers_={};this.map_=null;this.pois_=[];this.xhr_;this.zindex_=0;_.extend(this,this.defaults,n,this.settings)};mapp.Map.prototype={display:function(){var t=this,i;if(this.div.layout=this.sel?n(".mapp-layout",this.sel):n("#"+this.name+"-layout"),n.each(["canvas","controls","dialog","directions","filters","iw","list","menu","search"],function(i,r){t.div[r]=n(".mapp-"+r,t.div.layout)}),this.sanity()===!0){this.templates=this.editable?{loop:"edit-loop",item:"edit-item",popup:"edit-popup"}:this.query?{loop:"map-loop",item:"mashup-item",popup:"mashup-popup"}:{loop:"map-loop",item:"map-item",popup:"map-popup"};mappl10n.options.engine=="leaflet"?(i=_.extend({attribution:'Map data <a href="https://openstreetmap.org">OpenStreetMap<\/a>',minZoom:0,scrollWheelZoom:!1,worldCopyJump:!0,zoomControl:null},this.mapOpts),i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom),this.map_=new L.Map(this.div.canvas.get(0),i),L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(this.map_),this.iw=L.popup(),this.iw.setContent(this.div.iw.get(0))):(this.map_=new google.maps.Map(this.div.canvas.get(0),{mapTypeId:"roadmap",zoom:1}),i=_.extend({backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},minZoom:0,scaleControl:!0,scrollwheel:!1,streetViewControl:!this.editable&&!this.query},this.mapOpts),i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom),this.map_.setOptions(i),this.iw=mappl10n.options.iwType=="ib"||this.editable?new mapp.InfoBox(this):new google.maps.InfoWindow,this.iw.setContent(this.div.iw.get(0)),this.addLayers());this.addStyles();this.addControls();this.addMenu();this.setMapTypeId(this.mapTypeId,!0);this.places=new mapp.Places(n(".mapp-places",this.div.search),{map:t});n(this.places).on("search.mapp",function(n,i){t.search(i)});this.addEvents("click drag",function(){t.close()});this.toggleView("mini",this.div.layout.width()<mappl10n.options.mini);this.div.layout.on("click","[data-mapp-action]",function(i){var r=n(this).attr("data-mapp-action");i.preventDefault();t.action(r,n(this).attr("data-mapp-"+r),n(this))});this.div.filters.on("change",function(){t.ajaxQuery()});n(window).resize(function(){t.resize()});this.places.parse(this.center,function(n){t.center=n&&n.geometry&&n.geometry.location?{lat:n.geometry.location.lat,lng:n.geometry.location.lng}:null;t.query?t.ajaxQuery(function(){t.initCenter()}):(t.setPois(t.pois),t.initCenter())})}},initCenter:function(){var n=this;this.recenter();this.renderList();this.query&&mappl10n.options.search&&!this.editable&&this.addSearchMove();mappl10n.options.engine=="leaflet"?this.initOpen():mapp.event.addListenerOnce(n.map_,"idle",function(){n.initOpen()})},initOpen:function(){var n=this.pois_.length?this.pois_[0]:null;this.initialOpenDirections?this.openDirections(null,n):n&&this.initialOpenInfo&&n.open()},search:function(n){var i,t,f,u,r;n&&n.geometry&&(i=n.geometry.location?n.geometry.location:null,t=n.geometry.viewport?n.geometry.viewport:null,mappl10n.options.engine=="leaflet"?(f=new L.LatLng(i.lat,i.lng),r=f.toBounds(mappl10n.options.radius*1e3)):(u=new google.maps.Circle({center:i,radius:mappl10n.options.radius*1e3}),r=t?new google.maps.LatLngBounds(new google.maps.LatLng(t.sw.lat,t.sw.lng),new google.maps.LatLng(t.ne.lat,t.ne.lng)).union(u.getBounds()):u.getBounds()),this.fitBounds(r),this.setView(i))},load:function(n){_.extend(this,this.defaults,n,this.settings);this.setMapTypeId(this.mapTypeId,!0);this.setPois(this.pois);this.recenter()},action:function(t,i,r){var f=this,u;switch(t){case"center":this.toggleView("menu",!1);this.close();this.recenter();break;case"dir":this.openDirections(null,this.poi);break;case"dir-from":this.openDirections(this.poi,null);break;case"filters-reset":this.div.filters.find(":input").each(function(){this.type=="checkbox"||this.type=="radio"?n(this).prop("checked",!1):n(this).val("")});this.ajaxQuery();break;case"filters-toggle":this.toggleView("filters");break;case"geolocate":this.places.geolocate(function(n){f.search(n)});break;case"layer":this.toggleLayer(i);this.toggleView("menu",!1);break;case"menu-toggle":this.toggleView("menu");break;case"open":u=r.attr("data-mapp-poi");this.open(this.pois_[u]);break;case"show":this.div.layout.show();this.resize();this.initCenter();break;case"view-map":this.toggleView("list",!1);break;case"view-list":this.toggleView("list",!0);break;default:return!0}},dialog:function(n,t){var i=this;n?(this.div.dialog.html(n),this.div.dialog.show(),t&&(clearTimeout(this.dialog.fade),this.dialog.fade=setTimeout(function(){i.dialog(null)},4e3))):this.div.dialog.hide()},addEvents:function(n,t){n=n.split(" ");for(var i=0;i<n.length;i++)mapp.event.addListener(this.map_,n[i],t)},close:function(){mappl10n.options.engine=="leaflet"?this.map_.closePopup():this.iw.close();this.select(null);n(this).triggerHandler("mapp.close")},openDirections:function(n,t){var i=n?n.getAddress():"",r=t?t.getAddress():"";n?n.open():t&&t.open();this.dir_||(this.dir_=new mapp.Directions(this.div.directions,this));this.dir_.open(i,r)},sanity:function(){if(!this.div.canvas.length)return mapp.lib.log("MapPress: Missing map name or container for map: "+this.name);if(mappl10n.options.autoupdate==="tc")return mapp.lib.log("Maps API missing (800001)");if(typeof _=="undefined")return mapp.lib.alert("ERROR: underscore.js not loaded. Check cacheing / optimizing plugins.");if(mappl10n.options.engine=="leaflet"){if(typeof L=="undefined")return mapp.lib.alert("ERROR: Unable to load Leaflet")}else{if(typeof google=="undefined")return mapp.lib.alert("ERROR: Google Maps API not loaded");n(document).ready(function(){n('script[src*="https://maps.googleapis.com/maps/api/js?v=3"]').length>1&&mapp.lib.alert("ERROR: Google Maps API key loaded multiple times, please see MapPress FAQ.")})}return!0},select:function(t){if(t){var i=n.inArray(t,this.pois_),r=n('[data-mapp-poi="'+i+'"]',this.div.list);mapp.lib.scrollTo(this.div.list,r);t.setZIndex(++this.zindex_)}this.poi=t},setHighlight:function(n){this.highlight&&(mappl10n.options.engine=="leaflet"?this.highlight.remove():this.highlight.setMap(null));n&&(mappl10n.options.engine=="leaflet"?this.highlight=new L.Marker(n.getPosition()).addTo(this.map_):(this.highlight=new google.maps.Marker({position:n.getPosition()}),this.highlight.setMap(this.map_)))},getMap:function(){return this.map_},renderList:function(){var i=this.getBounds(),r=0,u=this,t;if(!this.editable)for(t=0;t<this.pois_.length;t++)this.pois_[t].visible=this.pois_[t].type!="kml",this.query&&i&&!i.contains(this.pois_[t].getPosition())&&(this.pois_[t].visible=!1),r+=this.pois_[t].visible;this.div.list.html(mapp.lib.template(this.templates.loop,{map:this,pois:this.pois_,count:r}));this.editable&&n(".mapp-items",u.sel).sortable({axis:"y",cursor:"move",delay:200,update:function(){u.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-poi"}))}})},getPois:function(){return this.pois_},insertPoi:function(n){var t=this;this.pois_.unshift(n);n.setMap(this);t.renderList();this.select(n)},removePoi:function(t){var r=this,i=n.inArray(t,this.pois_);i!=-1&&(this.pois_[i].setMap(null),this.pois_.splice(i,1),r.renderList())},resetPois:function(){for(i=0;i<this.pois_.length;i++)this.pois_[i].setMap(null);this.pois_=[];this.zindex_=0},setPois:function(n){var t,i;if(this.resetPois(),n){for(t=0;t<n.length;t++)i=new mapp.Poi(n[t]),this.pois_.push(i),i.id=this.pois_.length-1,i.setMap(this),i.setZIndex(this.zindex_+n.length-1-t);this.zindex_+=n.length-1}this.renderList()},sortPois:function(n){for(var r,t=Array(),i=0;i<n.length;i++){if(r=parseInt(n[i]),isNaN(r))return!1;t.push(this.pois_[r])}if(t.length!=this.pois_.length)return!1;this.pois_=t;this.renderList()},open:function(t,i){var r=null,u;if(this.close(),this.select(t),mappl10n.options.mashupClick!="poi"&&t.postid&&t.url){mappl10n.options.mashupClick=="post"?window.location.assign(t.url):window.open(t.url);return}this.toggleView("list",!1);i&&i.featureData?r=i.featureData:i&&i.propagatedFrom&&i.propagatedFrom.feature&&i.propagatedFrom.feature.properties&&(r=i.propagatedFrom.feature.properties);this.div.iw.html(t.render("popup",r));mappl10n.options.engine=="leaflet"?(this.iw.setLatLng(t.getPosition()),this.iw.options.offset=t.getAnchorPoint(),this.map_.openPopup(this.iw)):(u=new google.maps.MVCObject,u.setValues({position:t.getPosition(i),anchorPoint:t.getAnchorPoint(i)}),this.iw.open(this.map_,u));n(this).triggerHandler("mapp.open",t)},renderMenu:function(){var t=this;for(layer in this.layers_)this.layers_[layer].getMap()&&n('[data-mapp-layer="'+layer+'"]',this.div.layout).addClass("mapp-active")},addStyles:function(){var u=this,l,f,r,i;if(mappl10n.options.engine=="leaflet"){if(this.editable){for(l=[],f=L.control.layers(),r=0;r<mappl10n.options.baseLayers.length;r++){var o=mappl10n.options.baseLayers[r],s=mappl10n.options.providers[o.provider],h=n.extend({},s,o);f.addBaseLayer(L.tileLayer(s.url,h),h.label)}mappl10n.options.baseLayers.length>1&&f.addTo(this.map_)}this.map_.on("baselayerchange",function(n){u.mapTypeId=n.layer.options.name})}else{var t=mappl10n.options.styles?mappl10n.options.styles:[],e=mappl10n.options.style,c=["roadmap","satellite","terrain","hybrid"];if(e&&typeof t[e]!="undefined"&&this.map_.setOptions({styles:t[e]}),this.editable){for(i in t)this.map_.mapTypes.set(i,new google.maps.StyledMapType(t[i],{name:i})),c.push(i);this.map_.setOptions({mapTypeControlOptions:{mapTypeIds:c,position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}})}else this.mapTypeId&&typeof t[this.mapTypeId]!="undefined"&&this.map_.setOptions({styles:t[this.mapTypeId]});mapp.event.addListener(this.map_,"maptypeid_changed",function(){u.mapTypeId=u.map_.getMapTypeId()})}},addControls:function(){var n=this;this.div.controls.html(mapp.lib.template("map-controls",{map:this}))},addLayers:function(){var u,i,t,r;for(this.layers_={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer},u=n.makeArray(this.layers),i=0;i<u.length;i++)t=n.trim(u[i]),r=t.split(".").pop(),this.layers_[t]?this.toggleLayer(t):r=="kml"||r=="kmz"?this.layers_[t]=new google.maps.KmlLayer({map:this.map_,preserveViewport:!0,url:t}):r=="json"&&(this.layers_[t]=new google.maps.Data({map:this.map_}).loadGeoJson(t))},addMenu:function(){var t=this;n("body").on("click",function(i){var r=n(i.target),u=r.attr("data-mapp-action");r==t.div.filters||u=="filters-toggle"||r.closest(t.div.filters).length||t.toggleView("filters",!1);r==t.div.menu||u=="menu-toggle"||r.closest(t.div.menu).length||t.toggleView("menu",!1)})},toggleLayer:function(t,i){var r=this;i=typeof i!="undefined"?i:this.layers_[t].getMap()==null;n.each(["traffic","bicycling","transit"],function(n,t){r.layers_[t].setMap(null)});i&&this.layers_[t].setMap(this.map_)},togglePois:function(n){n=!!n;for(var t=0;t<this.pois_.length;t++)this.pois_[t].setVisible(n)},toggleView:function(n,t){t=typeof t=="undefined"?!this.div.layout.hasClass("mapp-view-"+n):t;this.div.layout.toggleClass("mapp-view-"+n,t);n=="menu"&&t&&this.renderMenu();n=="directions"&&this.resize()},resize:function(){var n=this.getCenter();this.toggleView("mini",this.div.layout.width()<mappl10n.options.mini);mappl10n.options.engine=="leaflet"?this.map_.invalidateSize():mapp.event.trigger(this.map_,"resize");n&&this.setView(n)},recenter:function(){var t=this.center&&this.center.lat&&this.center.lng?this.center:null,n=this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null,i,r;if(t&&!n&&this.query){this.search({geometry:{location:{lat:t.lat,lng:t.lng}}});return}if(t){this.setView(t,n?n:1);return}if(this.pois_.length==0){this.setView({lat:0,lng:0},n?n:1);return}if(this.pois_.length==1){this.pois_[0].center(n);return}for(bounds=mappl10n.options.engine=="leaflet"?new L.LatLngBounds:new google.maps.LatLngBounds,i=0;i<this.pois_.length;i++)r=this.pois_[i].getBounds(),bounds=r?mappl10n.options.engine=="leaflet"?bounds.extend(r):bounds.union(r):bounds.extend(this.pois_[i].getPosition());n?this.setView(bounds.getCenter().toJSON(),n):this.fitBounds(bounds)},toJSON:function(){var n;for(this.pois=[],n=0;n<this.pois_.length;n++)this.pois.push(this.pois_[n].toJSON());return{center:this.center,height:this.height,mapid:this.mapid,mapTypeId:this.mapTypeId,metaKey:this.metaKey,pois:this.pois,title:this.title,width:this.width,zoom:this.zoom}},ajaxSave:function(n){var t=this,i=JSON.stringify(this),r=!this.mapid||!this.postid?mappl10n.options.postid:this.postid;mapp.lib.ajax({type:"POST",data:{action:"mapp_save",map:i,postid:r},callback:function(i){i.status=="OK"&&(t.mapid||(t.mapid=i.data.mapid),n())}})},fitBounds:function(n,t){var t=mappl10n.options.engine=="leaflet"&&t?{paddingTopLeft:[t.left,t.top],paddingBottomRight:[t.right,t.bottom]}:t;return this.map_.fitBounds(n,t)},getBounds:function(){try{return this.map_.getBounds()}catch(n){return null}},getCenter:function(){try{return this.map_.getCenter()}catch(n){return null}},getMapTypeId:function(n){return mappl10n.options.engine=="leaflet"?"roadmap":this.map_.getMapTypeId(n)},setMapTypeId:function(t){var s=this,i,r,e,u,o,f;if(mappl10n.options.engine=="leaflet")for(this.map_.eachLayer(function(n){s.map_.removeLayer(n)}),t=!this.editable&&mappl10n.options.style&&t=="streets"?mappl10n.options.style:t,t=_.findIndex(mappl10n.options.baseLayers,{name:t})>=0?t:mappl10n.options.baseLayers[0].name,i=0;i<mappl10n.options.baseLayers.length;i++)r=mappl10n.options.baseLayers[i],e=mappl10n.options.providers[r.provider],r.name==t&&(u=n.extend({},e,r),o=L.tileLayer(u.url,u),o.addTo(this.map_));else f=n.inArray(t,["roadmap","satellite","terrain","hybrid"])!=-1,t=this.editable?f||typeof mappl10n.options.styles[t]!="undefined"?t:"roadmap":f?t:"roadmap",this.map_.setMapTypeId(t)},setView:function(n,t,i){mappl10n.options.engine=="leaflet"?(t==null&&(t=this.map_.getZoom()?this.map_.getZoom():0),this.map_.setView(n,t,i)):(n=n&&!n.toJSON?{lat:parseFloat(n.lat),lng:parseFloat(n.lng)}:n,t=t?parseInt(t):null,n&&this.map_.setCenter(n),t&&this.map_.setZoom(t))}};mapp.Map.ajaxGet=function(n,t,i){mapp.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:n},callback:function(n){if(n.status=="OK"){var r=new mapp.Map(n.data.map,t);i(r)}}})};mapp.Map.ajaxDelete=function(n,t){mapp.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:n},callback:function(n){n.status=="OK"&&t&&t()}})}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Directions=function(t,i){this.sel=n(t);this.map=i;this.directionsRenderer=null;this.directionsService=null;this.placesService=null;var r=this;this.sel.on("keydown",function(n){n.which==13?(r.getDirections(),n.preventDefault()):n.which==27&&r.close()});this.sel.on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action"),u=n(".mapp-dir-daddr",r.sel).val(),f=n(".mapp-dir-saddr",r.sel).val();t.preventDefault();switch(i){case"dir-cancel":r.close();break;case"dir-get":r.getDirections();break;case"dir-myloc":r.map.places.geolocate(function(t){n(".mapp-dir-saddr",r.sel).val(t.name);r.getDirections()});break;case"dir-swap":n(".mapp-dir-saddr",r.sel).val(u);n(".mapp-dir-daddr",r.sel).val(f);r.getDirections()}});this.open=function(t,i){if(mappl10n.options.directions=="google"){this.openGoogle(t,i);return}this.map.toggleView("directions",!0);n(".mapp-dir-addr",this.sel).removeClass("mapp-error");n(".mapp-dir-saddr",this.sel).val(t);n(".mapp-dir-daddr",this.sel).val(i);n(".mapp-dir-get",this.sel).focus();n(".mapp-dir-saddr",this.sel).focus()};this.close=function(){this.map.toggleView("directions",!1);this.directionsRenderer&&(this.directionsRenderer.setPanel(null),this.directionsRenderer.getMap()&&(this.directionsRenderer.setMap(null),this.map.togglePois(!0)))};this.getDirections=function(){this.map.close();this.openGoogle(n(".mapp-dir-saddr",this.sel).val(),n(".mapp-dir-daddr",this.sel).val());return};this.openGoogle=function(n,t){var i=mappl10n.options.directionsServer;i.toLowerCase().indexOf("http")==-1&&(i="https://"+i);i+="?saddr="+encodeURIComponent(n);i+="&daddr="+encodeURIComponent(t);window.open(i)}}}(jQuery);mapp=window.mapp||{};mapp.geocoders={};+function(n){mapp.geocoders.Algolia=function(n){this.map=n;this.places=algoliasearch.initPlaces()};mapp.geocoders.Algolia.prototype={geocode:function(n,t){var i=this;this.getPredictions(n,function(i){i&&i.hits.length?t({formatted_address:i.hits[0].locale_names[0],name:n,geometry:{location:{lat:i.hits[0]._geoloc.lat,lng:i.hits[0]._geoloc.lng}}}):t(null)})},getDetails:function(n,t){if(mappl10n.options.geocoder=="nominatim")return this.getNominatimDetails(n,t);if(mappl10n.options.geocoder=="mapbox"&&mappl10n.options.mapbox)return this.getMapboxDetails(n,t);t({formatted_address:n.value,name:n.name,geometry:{location:n.latlng}});return},getNominatimDetails:function(t,i){url="https://nominatim.openstreetmap.org/search?format=json&limit=1&q="+encodeURIComponent(t.value);url=mappl10n.options.country?url+"&countrycodes="+mappl10n.options.country.toLowerCase():url;url=mappl10n.options.language?url+"&accept-language="+mappl10n.options.language.toLowerCase():url;n.getJSON(url,function(n){if(n&&n.length){var r=n[0],u=r.boundingbox&&r.boundingbox.length==4?{sw:{lat:r.boundingbox[0],lng:r.boundingbox[2]},ne:{lat:r.boundingbox[1],lng:r.boundingbox[3]}}:null;i({formatted_address:r.display_name,name:t.name,geometry:{location:{lat:r.lat,lng:r.lon},viewport:u}})}else i({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})})},getMapboxDetails:function(t,i){url="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURIComponent(t.value)+".json?access_token="+mappl10n.options.mapbox;url=mappl10n.options.country?url+"&country="+mappl10n.options.country.toLowerCase():url;url=mappl10n.options.language?url+"&language="+mappl10n.options.language.toLowerCase():url;n.getJSON(url,function(n){if(n&&n.features&&n.features.length>0){var r=n.features[0],u=r.bbox&&r.bbox.length==4?{sw:{lat:r.bbox[1],lng:r.bbox[0]},ne:{lat:r.bbox[3],lng:r.bbox[2]}}:null;i({formatted_address:r.place_name,name:t.name,geometry:{location:{lat:r.center[1],lng:r.center[0]},viewport:u}})}else i({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})})},getPredictions:function(n,t){this.places.search({query:n,language:mappl10n.options.language},function(n,i){n||!i?t(null):t(i)})}}}(jQuery);+function(n){mapp.geocoders.Google=function(t){this.map=t;this.token=null;this.types=this.map.editable?null:["geocode"];var i=n('<div style="display:none">').appendTo("body");this.placesService=new google.maps.places.PlacesService(i.get(0));this.autocompleteService=new google.maps.places.AutocompleteService;i.remove()};mapp.geocoders.Google.prototype={geocode:function(t,i){var r=this;this.getPredictions(t,function(t){t&&n.isArray(t)?r.getDetails(t[0],function(n){i(n)}):i(null)})},getDetails:function(n,t){this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;this.token=null;var i={placeId:n.place_id,sessionToken:this.token};this.placesService.getDetails(i,function(n,i){if(i=="OK"&&n&&n.geometry){if(n.geometry.location&&(n.geometry.location=n.geometry.location.toJSON()),n.geometry.viewport){var r=n.geometry.viewport.toJSON();n.geometry.viewport={sw:{lat:r.south,lng:r.west},ne:{lat:r.north,lng:r.east}}}t(n)}else t(null)})},getPredictions:function(n,t){var i,r;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;i=this.map.getMap().getBounds();i=i?i:new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180));r={input:n,bounds:i,sessionToken:this.token,types:this.types};this.autocompleteService.getPlacePredictions(r,function(n,i){i=="OK"&&n&&n.length?t(n):(i==google.maps.places.PlacesServiceStatus.REQUEST_DENIED?alert("Google Maps API Key error: please enable the Places API in the Google Developer Console."):i==google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT&&alert("Google Maps API Key has exceeded its query limit"),t(null))})}}}(jQuery);mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){var n="https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png";return mappl10n.options.engine=="leaflet"?L.icon({iconUrl:n,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-32]}):{url:n}};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};+function(n){mapp.InfoBox=function(t,i){var f=n.extend({border:20},i),u=null,r=null,o,e=this;r=n('<div class="mapp-ib-wrapper" tabindex="0"><div class="mapp-ib" tabindex="0"><\/div><div class="mapp-ib-tip"><\/div><\/div>').appendTo(t.getMap().getDiv());jQuery(window).resize(function(){e.close()});r.on("keydown",function(n){n.which==27&&e.close()});r.on("click",".mapp-close",function(){e.close()});this.getContent=function(){return n(".mapp-ib",r)};this.setContent=function(t){n(".mapp-ib",r).empty().append(t)};this.open=function(n,t){u=t;this.setMap(n)};this.onAdd=function(){o=!1;var t=n(":input",r);r.show();t.length?t.first().focus():r.focus();google.maps.event.trigger(e,"domready")};this.draw=function(){var l=this.getMap(),a=n(".mapp-ib-body",r),s=this.getProjection().fromLatLngToContainerPixel(u.position),t,h,c,i,e;o||(o=!0,t={width:n(":first-child",l.getDiv()).width(),height:n(":first-child",l.getDiv()).height()},r.css({"max-height":"9999px",left:0,bottom:0,top:"auto",right:"auto"}),h=r.outerWidth(!0),c=r.outerHeight(!0),c>t.height+u.anchorPoint.y-2*f.border&&(c=t.height+u.anchorPoint.y-2*f.border,r.css({"max-height":c+2})),i=s.x,e=s.y,i+h/2>t.width&&(i=t.width-h/2),i-h/2<0&&(i=h/2),e-c+u.anchorPoint.y<f.border&&(e=c-u.anchorPoint.y+f.border),e>t.height&&(e=t.height),(s.x-i||s.y-e)&&l.panBy(s.x-i,s.y-e),r.css({left:i-h/2,bottom:t.height-e-u.anchorPoint.y}))};this.close=function(){r.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))};this.onRemove=function(){r.hide()}};mappl10n.options.engine!="leaflet"&&(mapp.InfoBox.prototype=new google.maps.OverlayView)}(jQuery);mapp=window.mapp||{};+function(n){mapp.lib={ajax:function(t){var i=this;return n.extend({type:"GET",data:null,spinner:null,callback:n.noop},t),t.spinner&&t.spinner.show(),n.ajax({type:t.type,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,r,u){if(t.spinner&&t.spinner.hide(),n.status!="OK"){var f=typeof n=="object"?n.status:n;i.alert("AJAX ERROR\r\nResponse="+f+" TextStatus="+r+"\r\nResponseText="+u.responseText)}if(n.output){i.log("AJAX Output\r\n"+n.output);return}t.callback&&t.callback(n,u)},error:function(n,r,u){(t.spinner&&t.spinner.hide(),r!="cancel")&&typeof u!="undefined"&&u!=""&&i.alert("AJAX ERROR\r\nTextStatus="+r+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},alert:function(n){mappl10n.options.admin||mappl10n.options.debug?alert(n):window.console&&console.error(n)},jqVersionCheck:function(t){if(typeof n=="undefined"||typeof t=="undefined")return!1;for(t=t.split("."),v=n.fn.jquery.split("."),i=0;i<t.length;i++){var r=parseInt(t[i]),u=typeof v[i]!="undefined"?parseInt(v[i]):0;if(u!=r)return u>r}return!0},log:function(n){window.console&&console.error(n)},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var i=n.scrollTop(),u=n.height(),r=i+t.position().top,f=r+t.outerHeight(!0);r<i?n.scrollTop(r):f>i+u&&n.scrollTop(f-u)}},template:function(t,i){if(mapp.lib.templates=mapp.lib.templates?mapp.lib.templates:{},!mapp.lib.templates[t]){var r=mappl10n.options.templates?mappl10n.options.template[t]:n("#mapp-tmpl-"+t).html();if(r)mapp.lib.templates[t]=_.template(r.replace(/[\n\r\t]/g,""),null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});else return""}return mapp.lib.templates[t](i)}};mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("jQuery version is too old: "+n.fn.jquery);n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-layout",r).each(function(){var i=n(this).find(".mapp-canvas").attr("id"),t=window[i];t.resize();t.recenter()})})}(jQuery);+function(){mappl10n.options.engine=="leaflet"&&(L.LatLng.prototype.toJSON=function(){return{lat:this.lat,lng:this.lng}},L.LatLngBounds.prototype.toJSON=function(){return{south:this.getSouth(),west:this.getWest(),north:this.getNorth(),east:this.getEast()}},L.LatLng.prototype.toUrlValue=function(){return Math.round(this.lat*1e6)/1e6+", "+Math.round(this.lng*1e6)/1e6});mapp.event={addListener:function(n,t,i){if(mappl10n.options.engine=="leaflet")n.on(t,i);else google.maps.event.addListener(n,t,i)},addListenerOnce:function(n,t,i){if(mappl10n.options.engine=="leaflet")n.once(t,i);else google.maps.event.addListenerOnce(n,t,i)},clearInstanceListeners:function(n){mappl10n.options.engine=="leaflet"?n.off():google.maps.event.clearInstanceListeners(n)},clearListeners:function(n,t){mappl10n.options.engine=="leaflet"?n.off(t):google.maps.event.clearListeners(n,"rightclick")},trigger:function(n,t,i){mappl10n.options.engine=="leaflet"?n.fire(t,i):google.maps.event.trigger(n,t,i)}}}(jQuery);mapp=window.mapp||{};jQuery.fn.AlgoliaAutocomplete=jQuery.fn.autocomplete.noConflict();+function(n){mapp.Places=function(t,i){var r=this;this.sel=n(t);this.opts=n.extend({map:null},i);this.geocoder=mappl10n.options.engine=="leaflet"?new mapp.geocoders.Algolia(this.opts.map):new mapp.geocoders.Google(this.opts.map);this.sel.on("keydown",function(t){if(t.which==13){t.preventDefault();var i=r.parseLatLng(r.sel.val());i&&(n(r).triggerHandler("search.mapp",i),r.sel.AlgoliaAutocomplete("close"),t.stopImmediatePropagation());r.sel.val().substring(0,4)=="http"&&(n(r).triggerHandler("search.mapp",r.sel.val()),r.sel.AlgoliaAutocomplete("close"),t.stopImmediatePropagation())}});this.autocomplete();this.sel.focus()};mapp.Places.prototype={parse:function(t,i){var f=this,u=t&&t.name?n.trim(t.name):n.trim(t),r;if(!u){i(null);return}if(u=="user"){this.geolocate(function(n){i(n)});return}if(t&&t.geometry){i(t);return}if(r=this.parseLatLng(t),r){i(r);return}this.geocoder.geocode(t,function(n){i(n)})},parseLatLng:function(t){var i,e,r,u,f;return t.lat&&t.lng?i=t:(e=t&&t.name?n.trim(t.name):n.trim(t),r=e.split(","),r.length==2&&(u=parseFloat(r[0]),f=parseFloat(r[1]),isNaN(u)||isNaN(f)||(i={lat:u,lng:f}))),i?{name:i.lat+", "+i.lng,geometry:{location:i}}:null},geolocate:function(n){var t=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){var i={lat:t.coords.latitude,lng:t.coords.longitude};n({name:i.lat+", "+i.lng,geometry:{location:i}})},function(t){var i=t&&t.message?" : "+t.message:"";alert(mappl10n.no_geolocate+i);n(null)},{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4})},autocomplete:function(){var t=this,r,i,u;this.sel.on("autocomplete:selected",function(i,r){t.geocoder.getDetails(r,function(i){t.parse(i,function(i){i&&n(t).triggerHandler("search.mapp",i)})})});r={empty:'<div class="list-group search-results-dropdown"><div class="list-group-item">'+mappl10n.no_results+"<\/div><\/div>",header:'<div class="list-group search-results-dropdown">'};mappl10n.options.engine=="leaflet"?(i={algoliasearch:algoliasearch,templates:r},mappl10n.options.country&&(i.countries=[mappl10n.options.country]),mappl10n.options.language&&(i.language=mappl10n.options.language),u=placesAutocompleteDataset(i)):u={display:"description",source:function(n,i){t.geocoder.getPredictions(n,function(n){matches=n;i(matches)})},templates:r};this.sel.AlgoliaAutocomplete({autoselect:!0,cssClasses:{prefix:"mapp-aa"},debug:!1,hint:!0,highlight:!0,minLength:1},u)}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Poi=function(t){var u,f,r,o,i,e,h,s;if(this.defaults={address:null,body:null,iconid:null,kml:null,map:null,overlay:null,postid:null,props:null,title:"",url:null,type:null,viewport:null},n.extend(this,this.defaults,t),t&&t.correctedAddress&&(this.address=t.correctedAddress),mappl10n.options.engine=="leaflet"&&this.isPoly()&&(this.type=null),t.viewport&&t.viewport.sw&&t.viewport.ne&&(u=t.viewport.sw,f=t.viewport.ne,this.viewport=mappl10n.options.engine=="leaflet"?new L.LatLngBounds(L.latLng(u.lat,u.lng),L.latLng(f.lat,f.lng)):new google.maps.LatLngBounds(new google.maps.LatLng(u.lat,u.lng),new google.maps.LatLng(f.lat,f.lng))),r=[],o=[],!t.overlay)switch(this.type){case"polygon":if(t.poly&&t.poly.paths)for(i=0;i<t.poly.paths.length;i++){for(r=[],e=0;e<t.poly.paths[i].length;e++)r.push(new google.maps.LatLng(t.poly.paths[i][e].lat,t.poly.paths[i][e].lng));o.push(new google.maps.MVCArray(r))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(t.poly);break;case"polyline":if(t.poly&&t.poly.path)for(i=0;i<t.poly.path.length;i++)r.push(new google.maps.LatLng(t.poly.path[i].lat,t.poly.path[i].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(r)});this.setColors(t.poly);break;case"circle":h=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Circle({center:h,radius:parseFloat(t.poly.radius)});this.setColors(t.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(t.poly);break;case"kml":s=t.kml&&t.kml.url?t.kml.url:"";this.overlay=mappl10n.options.engine=="leaflet"?omnivore.kml(s):new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:this.overlay=mappl10n.options.engine=="leaflet"?L.marker([t.point.lat,t.point.lng],{title:t.title}):new google.maps.Marker({position:new google.maps.LatLng(t.point.lat,t.point.lng),title:t.title})}t.type||this.setIcon(t.iconid)};mapp.Poi.prototype={toJSON:function(){var n={address:this.address,body:this.body,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},u=this.getPosition(),i,t,r;if(n.point=u.toJSON(),i=this.viewport?this.viewport:this.getBounds(),i&&(t=i.toJSON(),n.viewport={sw:{lat:t.south,lng:t.west},ne:{lat:t.north,lng:t.east}}),this.type=="kml"&&(n.kml=this.kml),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push(t.toJSON())});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push(n.toJSON())});n.poly.paths.push(i)});break;case"rectangle":r=this.overlay.getBounds();n.viewport={sw:r.getSouthWest().toJSON(),ne:r.getNorthEast().toJSON()}}}return n},setMap:function(n){var t=this;if(this.map=n,mapp.event.clearInstanceListeners(this.overlay),n==null){mappl10n.options.engine=="leaflet"?this.overlay.remove():this.overlay.setMap(null);return}this.type=="kml"&&(mappl10n.options.engine=="leaflet"?(mapp.event.addListenerOnce(this.overlay,"ready",function(){t.viewport=t.overlay.getBounds()}),mapp.event.addListenerOnce(this.overlay,"error",function(){alert(mappl10n.kml_error)})):(mapp.event.addListener(this.overlay,"defaultviewport_changed",function(){t.viewport=t.overlay.getDefaultViewport()}),mapp.event.addListener(this.overlay,"status_changed",function(){var n=t.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)})));mapp.event.addListener(this.overlay,"click",function(n){t.open(n)});this.setEditable(this.map.editable);mappl10n.options.engine=="leaflet"?this.overlay.addTo(n.getMap()):this.overlay.setMap(n.getMap())},setEditable:function(n){var t=this;this.type!="kml"&&(mappl10n.options.engine=="leaflet"?this.overlay.options.draggable=n:this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),mapp.event.clearListeners(this.overlay,"rightclick"),mapp.event.clearListeners(this.overlay,"dragstart"),n&&(mapp.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.close()}),(this.type=="polygon"||this.type=="polyline")&&mapp.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},setZIndex:function(n){mappl10n.options.engine=="leaflet"?this.type||this.overlay.setZIndexOffset(n):this.overlay.set("zIndex",n)},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.iconid=n,mappl10n.options.engine=="leaflet"?this.overlay.setIcon(mapp.Icons.get(n)):(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n))))},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},setTemplateColors:function(n,t,i){var r=this.type=="polyline"?{strokeColor:n,strokeOpacity:t/100,strokeWeight:i}:{fillColor:n,fillOpacity:t/100,strokeColor:n,strokeWeight:i,strokeOpacity:1};this.setColors(r)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},getTemplateColors:function(){var n=this.getColors();return this.type=="polyline"?{color:n.strokeColor,opacity:n.strokeOpacity*100,weight:n.strokeWeight}:{color:n.fillColor,opacity:n.fillOpacity*100,weight:n.strokeWeight}},center:function(n){var t=this.getBounds();if(typeof n=="number"){this.map.setView(this.getPosition(),n);return}if(!t){this.map.setView(this.getPosition(),parseInt(mappl10n.options.poiZoom));return}this.map.fitBounds(t);this.map.setView(this.getPosition(),n)},open:function(n){this.map.open(this,n)},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=mappl10n.options.engine=="leaflet"?this.overlay.getBounds().isValid()?this.overlay.getBounds():null:this.overlay.getDefaultViewport();n=n?n:this.viewport;break;default:return this.viewport}return n},getPosition:function(n){if(!this.type)return mappl10n.options.engine=="leaflet"?this.overlay.getLatLng():this.overlay.getPosition();if(this.type=="kml"&&n&&n.latLng)return n.latLng;var t=this.getBounds();return t?t.getCenter():mappl10n.options.engine=="leaflet"?new L.latLng(0,0):new google.maps.LatLng(0,0)},getAddress:function(){return this.address?this.address:this.getPosition().toUrlValue()},getAnchorPoint:function(n){var t=this.isPoly()?"poly":this.type;switch(t){case"kml":return mappl10n.options.engine=="leaflet"?[0,0]:n&&n.pixelOffset?new google.maps.Point(n.pixelOffset.width,n.pixelOffset.height):new google.maps.Point(0,0);case"poly":return mappl10n.options.engine=="leaflet"?[0,0]:new google.maps.Point(0,0);default:return mappl10n.options.engine=="leaflet"?this.overlay.options.icon.options.popupAnchor?this.overlay.options.icon.options.popupAnchor:[0,-32]:typeof this.overlay.anchorPoint!="undefined"?this.overlay.anchorPoint:new google.maps.Point(0,-32)}},render:function(n,t){var i=_.extend(this,{icon:mapp.Icons.getUrl(this.iconid)});return t&&(i.body=t.description,i.title=t.name),mapp.lib.template(this.map.templates[n],{poi:i,colors:this.getTemplateColors()})}}}(jQuery);mapp=window.mapp||{};mapp.widgets={};+function(n){mapp.widgets.Grid=function(t,i){this.el=n(t);this.options=jQuery.extend({action:null,sortable:!1},i);var r=this;this.table=n("table",this.el);this.template=n("script",this.el).html().replace(new RegExp("'","g"),'"');this.el.on("click",function(t){var u=n(t.target),i=u.attr("data-mapp-action");i&&(r[i](t),t.preventDefault())})};mapp.widgets.Grid.prototype={add:function(){this.table.show();var t=n(this.template).appendTo(this.table);n(":input:eq(0)",t).focus()},remove:function(t){var i=n(t.target).closest("tr").remove();n("tbody > tr",this.table).length||this.table.hide()}}}(jQuery);+function(n){mapp.widgets.Popup=function(t,i){var r,u;if(this.activeToggle=null,this.content=t,this.el=null,r=this,this.options=n.extend({max:!1,modal:!1,position:null,toggle:null},i),this.options.modal?this.el=this.content.addClass("mapp-popup-fixed"):(this.el=n('<div class="mapp-popup">'),this.setContent(t)),this.el.attr("tabindex",0),this.options.max&&this.el.addClass("mapp-popup-max"),this.el.hide(),!this.options.modal)n(document).on("click.mapp.popup",function(t){n.contains(r.el.get(0),t.target)||r.el.get(0)==t.target||r.close()});if(this.options.toggle){u=typeof this.options.toggle=="string"?this.options.toggle:this.options.toggle.selector;n(document).on("click",u,function(t){r.activeToggle=n(this);r.open();t.stopPropagation()})}this.el.on("click",".mapp-close",function(){r.close()});this.el.on("keydown",function(n){n.which==27&&r.close()});return this};mapp.widgets.Popup.prototype={close:function(){this.el&&this.el.is(":visible")&&(this.backdrop&&(this.backdrop.remove(),n("body").removeClass("mapp-popup-modal")),this.el.hide(),this.activeToggle&&this.activeToggle.focus(),this.el.trigger("closed.mapp.popup"))},open:function(){var t=this;this.options.modal||this.el.parent().length||this.el.appendTo("body");this.el.show();this.options.modal?(this.backdrop=n('<div class="mapp-popup-backdrop"><\/div>'),this.el.after(this.backdrop),n("body").addClass("mapp-popup-modal")):this.el.position(n.extend({my:"center bottom",at:"center top-5",of:this.activeToggle,collision:"flipfit"},this.options.position));this.el.focus();this.el.trigger("open.mapp.popup")},setContent:function(n){this.el.empty();this.el.append('<span class="mapp-close">').append(n)},toggle:function(){this.el.is(":visible")?this.close():this.open()}}}(jQuery);+function(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop();window[n.name]=new mapp.Map(n);window[n.name].display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappEditor=new mapp.Media:mapp.load()
languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -1,10 +1,10 @@
1
- # Copyright (C) 2020 MapPress Maps for WordPress
2
- # This file is distributed under the same license as the MapPress Maps for WordPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MapPress Maps for WordPress 2.53.5\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
- "POT-Creation-Date: 2020-02-12 23:20:38+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,962 +12,962 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: forms/editor.php:11
16
  msgid "Add KML"
17
  msgstr ""
18
 
19
- #: forms/editor.php:47
20
  msgid "Visual"
21
  msgstr ""
22
 
23
- #: forms/editor.php:47
24
  msgid "HTML"
25
  msgstr ""
26
 
27
- #: forms/editor.php:53 forms/media.php:49 forms/settings.php:41
28
  msgid "Save"
29
  msgstr ""
30
 
31
- #: forms/editor.php:54 forms/media.php:50 forms/settings.php:42
32
  msgid "Cancel"
33
  msgstr ""
34
 
35
- #: forms/editor.php:55 forms/media.php:72 forms/settings.php:44
36
- #: mappress_controls.php:102
37
  msgid "Delete"
38
  msgstr ""
39
 
40
- #: forms/media.php:7
41
  msgid "New Map"
42
  msgstr ""
43
 
44
- #: forms/media.php:9
45
  msgid "This post"
46
  msgstr ""
47
 
48
- #: forms/media.php:10 pro/mappress_widget.php:84
49
  msgid "All posts"
50
  msgstr ""
51
 
52
- #: forms/media.php:12
53
  msgid "Filter by title"
54
  msgstr ""
55
 
56
- #: forms/media.php:21
57
  msgid "Map ID"
58
  msgstr ""
59
 
60
- #: forms/media.php:26
61
  msgid "Map Title"
62
  msgstr ""
63
 
64
- #: forms/media.php:27 forms/media.php:63 forms/media.php:67 mappress.php:415
65
  msgid "Untitled"
66
  msgstr ""
67
 
68
- #: forms/media.php:31
69
  msgid "Display Size"
70
  msgstr ""
71
 
72
- #: forms/media.php:44
73
  msgid "Save center / zoom"
74
  msgstr ""
75
 
76
- #: forms/media.php:51 forms/media.php:71
77
  msgid "Insert into post"
78
  msgstr ""
79
 
80
- #: forms/media.php:70 forms/settings.php:4 forms/settings.php:18
81
  msgid "Edit"
82
  msgstr ""
83
 
84
- #: forms/media.php:79
85
  msgid "No maps found"
86
  msgstr ""
87
 
88
- #: forms/settings.php:24
89
  msgid "New"
90
  msgstr ""
91
 
92
- #: forms/settings.php:24
93
  msgid "Custom"
94
  msgstr ""
95
 
96
- #: forms/settings.php:27
97
  msgid "Editor"
98
  msgstr ""
99
 
100
- #: forms/settings.php:28 mappress_settings.php:184
101
- #: pro/mappress_pro_settings.php:219
102
  msgid "Default"
103
  msgstr ""
104
 
105
- #: mappress.php:153
106
  msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
107
  msgstr ""
108
 
109
- #: mappress.php:158
110
  msgid "WARNING: MapPress is not compatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
111
  msgstr ""
112
 
113
- #: mappress.php:163
114
  msgid "A Google Maps API key is required"
115
  msgstr ""
116
 
117
- #: mappress.php:163
118
  msgid "Please update your"
119
  msgstr ""
120
 
121
- #: mappress.php:163
122
  msgid "MapPress Settings"
123
  msgstr ""
124
 
125
- #: mappress.php:314 mappress.php:765
126
  msgid "Version"
127
  msgstr ""
128
 
129
- #: mappress.php:315
130
  msgid "Documentation"
131
  msgstr ""
132
 
133
- #: mappress.php:316
134
  msgid "Support"
135
  msgstr ""
136
 
137
- #: mappress.php:318
138
  msgid "Upgrade to MapPress Pro"
139
  msgstr ""
140
 
141
- #: mappress.php:404
142
  msgid "Are you sure you want to delete?"
143
  msgstr ""
144
 
145
- #: mappress.php:405
146
  msgid "Delete this map?"
147
  msgstr ""
148
 
149
- #: mappress.php:406
150
  msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
151
  msgstr ""
152
 
153
- #: mappress.php:407
154
  msgid "Error reading KML file"
155
  msgstr ""
156
 
157
- #: mappress.php:408
158
  msgid "URL for KML file"
159
  msgstr ""
160
 
161
- #: mappress.php:409
162
  msgid "Loading"
163
  msgstr ""
164
 
165
- #: mappress.php:410
166
  msgid "%d of %d shown"
167
  msgstr ""
168
 
169
- #: mappress.php:411
170
  msgid "Unable to get your location"
171
  msgstr ""
172
 
173
- #: mappress.php:412
174
  msgid "No results"
175
  msgstr ""
176
 
177
- #: mappress.php:413
178
  msgid "Save changes?"
179
  msgstr ""
180
 
181
- #: mappress.php:414
182
  msgid "Shape"
183
  msgstr ""
184
 
185
- #: mappress.php:439
186
  msgid "Improve this map"
187
  msgstr ""
188
 
189
- #: mappress.php:455 mappress.php:474
190
  msgid "Streets"
191
  msgstr ""
192
 
193
- #: mappress.php:456
194
  msgid "Outdoors"
195
  msgstr ""
196
 
197
- #: mappress.php:457
198
  msgid "Light"
199
  msgstr ""
200
 
201
- #: mappress.php:458
202
  msgid "Dark"
203
  msgstr ""
204
 
205
- #: mappress.php:459
206
  msgid "Satellite"
207
  msgstr ""
208
 
209
- #: mappress.php:460
210
  msgid "Satellite Streets"
211
  msgstr ""
212
 
213
- #: mappress.php:548
214
  msgid "Settings"
215
  msgstr ""
216
 
217
- #: mappress_controls.php:93
218
  msgid "Add"
219
  msgstr ""
220
 
221
- #: mappress_map.php:91 mappress_settings.php:306
222
  msgid "MapPress"
223
  msgstr ""
224
 
225
- #: mappress_map.php:163
226
  msgid "Map not found"
227
  msgstr ""
228
 
229
- #: mappress_map.php:423 pro/mappress_pro_settings.php:37
230
  msgid "Filter"
231
  msgstr ""
232
 
233
- #: mappress_map.php:456
234
  msgid "Show map"
235
  msgstr ""
236
 
237
- #: mappress_map.php:460
238
  msgid "Map"
239
  msgstr ""
240
 
241
- #: mappress_map.php:461
242
  msgid "List"
243
  msgstr ""
244
 
245
- #: mappress_settings.php:84
246
  msgid "Sample Map"
247
  msgstr ""
248
 
249
- #: mappress_settings.php:86
250
  msgid "Basic Settings"
251
  msgstr ""
252
 
253
- #: mappress_settings.php:87
254
  msgid "Mapping Engine"
255
  msgstr ""
256
 
257
- #: mappress_settings.php:90
258
  msgid "Mapbox access token"
259
  msgstr ""
260
 
261
- #: mappress_settings.php:92
262
  msgid "Google API key"
263
  msgstr ""
264
 
265
- #: mappress_settings.php:97
266
  msgid "License"
267
  msgstr ""
268
 
269
- #: mappress_settings.php:99
270
  msgid "Map Settings"
271
  msgstr ""
272
 
273
- #: mappress_settings.php:100
274
  msgid "Post types"
275
  msgstr ""
276
 
277
- #: mappress_settings.php:101
278
  msgid "Automatic display"
279
  msgstr ""
280
 
281
- #: mappress_settings.php:102
282
  msgid "Map alignment"
283
  msgstr ""
284
 
285
- #: mappress_settings.php:103 templates/map-popup.php:3
286
- #: templates/mashup-popup.php:6
287
  msgid "Directions"
288
  msgstr ""
289
 
290
- #: mappress_settings.php:105
291
  msgid "POI Settings"
292
  msgstr ""
293
 
294
- #: mappress_settings.php:106
295
  msgid "Default zoom"
296
  msgstr ""
297
 
298
- #: mappress_settings.php:107 mappress_settings.php:249
299
  msgid "Open first POI"
300
  msgstr ""
301
 
302
- #: mappress_settings.php:110
303
  msgid "Mashups"
304
  msgstr ""
305
 
306
- #: mappress_settings.php:111
307
  msgid "Icons"
308
  msgstr ""
309
 
310
- #: mappress_settings.php:112
311
  msgid "Styled Maps"
312
  msgstr ""
313
 
314
- #: mappress_settings.php:113
315
  msgid "Geocoding"
316
  msgstr ""
317
 
318
- #: mappress_settings.php:114
319
  msgid "Templates"
320
  msgstr ""
321
 
322
- #: mappress_settings.php:117
323
  msgid "Localization"
324
  msgstr ""
325
 
326
- #: mappress_settings.php:118
327
  msgid "Language"
328
  msgstr ""
329
 
330
- #: mappress_settings.php:119
331
  msgid "Country"
332
  msgstr ""
333
 
334
- #: mappress_settings.php:120
335
  msgid "Directions server"
336
  msgstr ""
337
 
338
- #: mappress_settings.php:122
339
  msgid "Miscellaneous"
340
  msgstr ""
341
 
342
- #: mappress_settings.php:124
343
  msgid "Compatiblity"
344
  msgstr ""
345
 
346
- #: mappress_settings.php:125
347
  msgid "Scripts"
348
  msgstr ""
349
 
350
- #: mappress_settings.php:126
351
  msgid "Map sizes"
352
  msgstr ""
353
 
354
- #: mappress_settings.php:185
355
  msgid "Center"
356
  msgstr ""
357
 
358
- #: mappress_settings.php:186
359
  msgid "Left"
360
  msgstr ""
361
 
362
- #: mappress_settings.php:187
363
  msgid "Right"
364
  msgstr ""
365
 
366
- #: mappress_settings.php:201
367
  msgid "Top of post"
368
  msgstr ""
369
 
370
- #: mappress_settings.php:202
371
  msgid "Bottom of post"
372
  msgstr ""
373
 
374
- #: mappress_settings.php:203
375
  msgid "None"
376
  msgstr ""
377
 
378
- #: mappress_settings.php:210 mappress_settings.php:254
379
  msgid "(list)"
380
  msgstr ""
381
 
382
- #: mappress_settings.php:215
383
  msgid "Country code for searches"
384
  msgstr ""
385
 
386
- #: mappress_settings.php:219
387
  msgid "Prevent other plugins/themes from loading the Google Maps API"
388
  msgstr ""
389
 
390
- #: mappress_settings.php:223 mappress_settings.php:232
391
  msgid "Google"
392
  msgstr ""
393
 
394
- #: mappress_settings.php:223
395
  msgid "Inline"
396
  msgstr ""
397
 
398
- #: mappress_settings.php:232
399
  msgid "Leaflet"
400
  msgstr ""
401
 
402
- #: mappress_settings.php:234
403
  msgid "Leaflet is free and requires no API key. Google requires an API key and has strict usage limits."
404
  msgstr ""
405
 
406
- #: mappress_settings.php:240 mappress_settings.php:243
407
  msgid "Output scripts in footer"
408
  msgstr ""
409
 
410
- #: mappress_settings.php:241
411
  msgid "Disabled because Jetpack Infinite Scroll is active"
412
  msgstr ""
413
 
414
- #: mappress_settings.php:244
415
  msgid "disable if maps are output using AJAX"
416
  msgstr ""
417
 
418
- #: mappress_settings.php:257
419
  msgid "Language for map controls"
420
  msgstr ""
421
 
422
- #: mappress_settings.php:261
423
  msgid "Enter token to use Mapbox map tiles"
424
  msgstr ""
425
 
426
- #: mappress_settings.php:268
427
  msgid "Default zoom when displaying a single POI"
428
  msgstr ""
429
 
430
- #: mappress_settings.php:281
431
  msgid "Easy Google Maps"
432
  msgstr ""
433
 
434
- #: mappress_settings.php:289
435
  msgid "Width (px or %)"
436
  msgstr ""
437
 
438
- #: mappress_settings.php:289
439
  msgid "Height (px)"
440
  msgstr ""
441
 
442
- #: mappress_settings.php:289
443
  msgid "Default size"
444
  msgstr ""
445
 
446
- #: mappress_settings.php:311 mappress_settings.php:319
447
  msgid "Save Changes"
448
  msgstr ""
449
 
450
- #: mappress_settings.php:312 mappress_settings.php:320
451
  msgid "Reset Defaults"
452
  msgstr ""
453
 
454
- #: mappress_template.php:25
455
  msgid "address"
456
  msgstr ""
457
 
458
- #: mappress_template.php:26
459
  msgid "body"
460
  msgstr ""
461
 
462
- #: mappress_template.php:27
463
  msgid "icon"
464
  msgstr ""
465
 
466
- #: mappress_template.php:28
467
  msgid "thumbnail"
468
  msgstr ""
469
 
470
- #: mappress_template.php:29
471
  msgid "title"
472
  msgstr ""
473
 
474
- #: mappress_template.php:30
475
  msgid "url"
476
  msgstr ""
477
 
478
- #: mappress_template.php:31
479
  msgid "custom field"
480
  msgstr ""
481
 
482
- #: pro/mappress_filter.php:93 pro/mappress_filter.php:142
483
- #: pro/mappress_pro_settings.php:155
484
  msgid "Post type"
485
  msgstr ""
486
 
487
- #: pro/mappress_filter.php:129
488
  msgid "Taxonomy"
489
  msgstr ""
490
 
491
- #: pro/mappress_filter.php:129
492
  msgid "Post field"
493
  msgstr ""
494
 
495
- #: pro/mappress_filter.php:129 pro/mappress_pro_settings.php:314
496
  msgid "Custom Field"
497
  msgstr ""
498
 
499
- #: pro/mappress_geocoder.php:29
500
  msgid "Invalid geocoder: %s"
501
  msgstr ""
502
 
503
- #: pro/mappress_geocoder.php:59 pro/mappress_geocoder.php:110
504
- #: pro/mappress_geocoder.php:147 pro/mappress_geocoder.php:183
505
  msgid "No results for address: %s"
506
  msgstr ""
507
 
508
- #: pro/mappress_geocoder.php:82
509
  msgid "Server API Key is missing - see MapPress Settings"
510
  msgstr ""
511
 
512
- #: pro/mappress_geocoder.php:100
513
  msgid "Invalid status: %s, %s Address: %s"
514
  msgstr ""
515
 
516
- #: pro/mappress_geocoder.php:212
517
  msgid "Error: %s %s"
518
  msgstr ""
519
 
520
- #: pro/mappress_geocoder.php:217
521
  msgid "Invalid JSON from Geocoding service: %s"
522
  msgstr ""
523
 
524
- #: pro/mappress_icons.php:47
525
  msgid "Use default icon"
526
  msgstr ""
527
 
528
- #: pro/mappress_icons.php:57
529
  msgid "Opacity"
530
  msgstr ""
531
 
532
- #: pro/mappress_icons.php:58
533
  msgid "Weight"
534
  msgstr ""
535
 
536
- #: pro/mappress_meta.php:109
537
  msgid "Automatic"
538
  msgstr ""
539
 
540
- #: pro/mappress_pro_settings.php:16
541
  msgid "MapPress license key"
542
  msgstr ""
543
 
544
- #: pro/mappress_pro_settings.php:17
545
  msgid "Beta versions"
546
  msgstr ""
547
 
548
- #: pro/mappress_pro_settings.php:21
549
  msgid "Geocoder"
550
  msgstr ""
551
 
552
- #: pro/mappress_pro_settings.php:23
553
  msgid "POI list"
554
  msgstr ""
555
 
556
- #: pro/mappress_pro_settings.php:24
557
  msgid "POI list layout"
558
  msgstr ""
559
 
560
- #: pro/mappress_pro_settings.php:25
561
  msgid "Sort"
562
  msgstr ""
563
 
564
- #: pro/mappress_pro_settings.php:28
565
  msgid "Popup type"
566
  msgstr ""
567
 
568
- #: pro/mappress_pro_settings.php:30
569
  msgid "Default icon"
570
  msgstr ""
571
 
572
- #: pro/mappress_pro_settings.php:31
573
  msgid "Icon directory"
574
  msgstr ""
575
 
576
- #: pro/mappress_pro_settings.php:32
577
  msgid "Icon scaling"
578
  msgstr ""
579
 
580
- #: pro/mappress_pro_settings.php:33
581
  msgid "Automatic icons"
582
  msgstr ""
583
 
584
- #: pro/mappress_pro_settings.php:35 templates/map-search.php:2
585
  msgid "Search"
586
  msgstr ""
587
 
588
- #: pro/mappress_pro_settings.php:38
589
  msgid "POI content"
590
  msgstr ""
591
 
592
- #: pro/mappress_pro_settings.php:39
593
  msgid "POI click"
594
  msgstr ""
595
 
596
- #: pro/mappress_pro_settings.php:40
597
  msgid "KMLs"
598
  msgstr ""
599
 
600
- #: pro/mappress_pro_settings.php:41
601
  msgid "Thumbnails"
602
  msgstr ""
603
 
604
- #: pro/mappress_pro_settings.php:42
605
  msgid "Thumbnail size"
606
  msgstr ""
607
 
608
- #: pro/mappress_pro_settings.php:45 pro/mappress_pro_settings.php:47
609
  msgid "Styled maps"
610
  msgstr ""
611
 
612
- #: pro/mappress_pro_settings.php:48
613
  msgid "Default style"
614
  msgstr ""
615
 
616
- #: pro/mappress_pro_settings.php:51
617
  msgid "Geocoding fields"
618
  msgstr ""
619
 
620
- #: pro/mappress_pro_settings.php:52
621
  msgid "Overwrite"
622
  msgstr ""
623
 
624
- #: pro/mappress_pro_settings.php:53
625
  msgid "Geocoding errors"
626
  msgstr ""
627
 
628
- #: pro/mappress_pro_settings.php:56
629
  msgid "Google Server API key"
630
  msgstr ""
631
 
632
- #: pro/mappress_pro_settings.php:58
633
  msgid "Custom templates"
634
  msgstr ""
635
 
636
- #: pro/mappress_pro_settings.php:60
637
  msgid "Force resize"
638
  msgstr ""
639
 
640
- #: pro/mappress_pro_settings.php:142
641
  msgid "more info"
642
  msgstr ""
643
 
644
- #: pro/mappress_pro_settings.php:143
645
  msgid "API key secured by IP address for geocoding (optional)"
646
  msgstr ""
647
 
648
- #: pro/mappress_pro_settings.php:162
649
  msgid "Value"
650
  msgstr ""
651
 
652
- #: pro/mappress_pro_settings.php:162 pro/mappress_pro_settings.php:309
653
  msgid "Icon"
654
  msgstr ""
655
 
656
- #: pro/mappress_pro_settings.php:177
657
  msgid "Enable updates for beta versions"
658
  msgstr ""
659
 
660
- #: pro/mappress_pro_settings.php:190
661
  msgid "Checkboxes"
662
  msgstr ""
663
 
664
- #: pro/mappress_pro_settings.php:190
665
  msgid "Select"
666
  msgstr ""
667
 
668
- #: pro/mappress_pro_settings.php:197
669
  msgid "Key"
670
  msgstr ""
671
 
672
- #: pro/mappress_pro_settings.php:197
673
  msgid "Format"
674
  msgstr ""
675
 
676
- #: pro/mappress_pro_settings.php:212
677
  msgid "Permanently resize existing maps"
678
  msgstr ""
679
 
680
- #: pro/mappress_pro_settings.php:214
681
  msgid "from %s to %s"
682
  msgstr ""
683
 
684
- #: pro/mappress_pro_settings.php:215
685
  msgid "Force Resize"
686
  msgstr ""
687
 
688
- #: pro/mappress_pro_settings.php:219
689
  msgid "Algolia"
690
  msgstr ""
691
 
692
- #: pro/mappress_pro_settings.php:220
693
  msgid "Nominatim"
694
  msgstr ""
695
 
696
- #: pro/mappress_pro_settings.php:221
697
  msgid "MapBox"
698
  msgstr ""
699
 
700
- #: pro/mappress_pro_settings.php:235
701
  msgid "Standard"
702
  msgstr ""
703
 
704
- #: pro/mappress_pro_settings.php:236
705
  msgid "InfoBox"
706
  msgstr ""
707
 
708
- #: pro/mappress_pro_settings.php:243
709
- msgid "Below map"
710
  msgstr ""
711
 
712
- #: pro/mappress_pro_settings.php:244
713
- msgid "Left of map"
714
  msgstr ""
715
 
716
- #: pro/mappress_pro_settings.php:250
717
  msgid "Enter license to enable automatic updates"
718
  msgstr ""
719
 
720
- #: pro/mappress_pro_settings.php:261
721
  msgid "Active"
722
  msgstr ""
723
 
724
- #: pro/mappress_pro_settings.php:266
725
  msgid "Check Now"
726
  msgstr ""
727
 
728
- #: pro/mappress_pro_settings.php:270
729
  msgid "Communication error, please try again later"
730
  msgstr ""
731
 
732
- #: pro/mappress_pro_settings.php:272
733
  msgid "License is invalid or expired"
734
  msgstr ""
735
 
736
- #: pro/mappress_pro_settings.php:276
737
  msgid "POI title + body"
738
  msgstr ""
739
 
740
- #: pro/mappress_pro_settings.php:276
741
  msgid "Post title + excerpt"
742
  msgstr ""
743
 
744
- #: pro/mappress_pro_settings.php:281
745
  msgid "Open POI"
746
  msgstr ""
747
 
748
- #: pro/mappress_pro_settings.php:281
749
  msgid "Open post"
750
  msgstr ""
751
 
752
- #: pro/mappress_pro_settings.php:281
753
  msgid "Open post in new tab"
754
  msgstr ""
755
 
756
- #: pro/mappress_pro_settings.php:286
757
  msgid "Include KML POIs in mashups"
758
  msgstr ""
759
 
760
- #: pro/mappress_pro_settings.php:298
761
  msgid "%d Errors"
762
  msgstr ""
763
 
764
- #: pro/mappress_pro_settings.php:308
765
  msgid "Address line "
766
  msgstr ""
767
 
768
- #: pro/mappress_pro_settings.php:309
769
  msgid "Latitude"
770
  msgstr ""
771
 
772
- #: pro/mappress_pro_settings.php:309
773
  msgid "Longitude"
774
  msgstr ""
775
 
776
- #: pro/mappress_pro_settings.php:309
777
  msgid "Title"
778
  msgstr ""
779
 
780
- #: pro/mappress_pro_settings.php:309
781
  msgid "Body"
782
  msgstr ""
783
 
784
- #: pro/mappress_pro_settings.php:309
785
  msgid "Zoom"
786
  msgstr ""
787
 
788
- #: pro/mappress_pro_settings.php:314
789
  msgid "Map Field"
790
  msgstr ""
791
 
792
- #: pro/mappress_pro_settings.php:327
793
  msgid "Overwrite maps when posts are saved"
794
  msgstr ""
795
 
796
- #: pro/mappress_pro_settings.php:331
797
  msgid "Show a list of POIs with each map"
798
  msgstr ""
799
 
800
- #: pro/mappress_pro_settings.php:339
801
  msgid "Enable search"
802
  msgstr ""
803
 
804
- #: pro/mappress_pro_settings.php:343
805
  msgid "Sort POI list by title"
806
  msgstr ""
807
 
808
- #: pro/mappress_pro_settings.php:349
809
  msgid "No styles have been defined yet"
810
  msgstr ""
811
 
812
- #: pro/mappress_pro_settings.php:358
813
  msgid "Styled Maps Wizard"
814
  msgstr ""
815
 
816
- #: pro/mappress_pro_settings.php:359
817
  msgid "JSON from Google's %s"
818
  msgstr ""
819
 
820
- #: pro/mappress_pro_settings.php:363 pro/mappress_pro_settings.php:379
821
  msgid "Style name"
822
  msgstr ""
823
 
824
- #: pro/mappress_pro_settings.php:375
825
  msgid "Mapbox Studio"
826
  msgstr ""
827
 
828
- #: pro/mappress_pro_settings.php:376
829
  msgid "Enter styles from %s"
830
  msgstr ""
831
 
832
- #: pro/mappress_pro_settings.php:394
833
  msgid "Only admins or multisite super-admins can edit templates"
834
  msgstr ""
835
 
836
- #: pro/mappress_pro_settings.php:399
837
  msgid "WordPress 4.9 or higher is needed to use the template editor."
838
  msgstr ""
839
 
840
- #: pro/mappress_pro_settings.php:405
841
  msgid "Map popup"
842
  msgstr ""
843
 
844
- #: pro/mappress_pro_settings.php:406
845
  msgid "Map list item"
846
  msgstr ""
847
 
848
- #: pro/mappress_pro_settings.php:407
849
  msgid "Mashup popup"
850
  msgstr ""
851
 
852
- #: pro/mappress_pro_settings.php:408
853
  msgid "Mashup list item"
854
  msgstr ""
855
 
856
- #: pro/mappress_pro_settings.php:422
857
  msgid "or "
858
  msgstr ""
859
 
860
- #: pro/mappress_pro_settings.php:430
861
  msgid "Show featured image thumbnails in mashup POIs"
862
  msgstr ""
863
 
864
- #: pro/mappress_updater.php:117
865
  msgid "Communication error"
866
  msgstr ""
867
 
868
- #: pro/mappress_updater.php:123
869
  msgid "JSON error"
870
  msgstr ""
871
 
872
- #: pro/mappress_widget.php:69
873
  msgid "Widget title"
874
  msgstr ""
875
 
876
- #: pro/mappress_widget.php:74
877
  msgid "Map size"
878
  msgstr ""
879
 
880
- #: pro/mappress_widget.php:80
881
  msgid "Show"
882
  msgstr ""
883
 
884
- #: pro/mappress_widget.php:81
885
  msgid "Current posts"
886
  msgstr ""
887
 
888
- #: pro/mappress_widget.php:82
889
  msgid "Hide if empty"
890
  msgstr ""
891
 
892
- #: pro/mappress_widget.php:85
893
  msgid "Custom query"
894
  msgstr ""
895
 
896
- #: pro/mappress_widget.php:88
897
  msgid "Learn about queries"
898
  msgstr ""
899
 
900
- #: pro/mappress_widget.php:93
901
  msgid "Show POI list"
902
  msgstr ""
903
 
904
- #: pro/mappress_widget.php:99
905
  msgid "Other Settings"
906
  msgstr ""
907
 
908
- #: pro/mappress_widget.php:102
909
  msgid "Example: initialopeninfo=\"true\""
910
  msgstr ""
911
 
912
- #: templates/map-controls.php:1
913
  msgid "Menu"
914
  msgstr ""
915
 
916
- #: templates/map-controls.php:3
917
  msgid "Center map"
918
  msgstr ""
919
 
920
- #: templates/map-controls.php:6
921
  msgid "Traffic"
922
  msgstr ""
923
 
924
- #: templates/map-controls.php:7
925
  msgid "Bicycling"
926
  msgstr ""
927
 
928
- #: templates/map-controls.php:8
929
  msgid "Transit"
930
  msgstr ""
931
 
932
- #: templates/map-directions.php:4
933
  msgid "My location"
934
  msgstr ""
935
 
936
- #: templates/map-directions.php:16
937
  msgid "Get Directions"
938
  msgstr ""
939
 
940
- #: templates/map-filters.php:9
941
  msgid "Done"
942
  msgstr ""
943
 
944
- #: templates/map-filters.php:10
945
  msgid "Reset"
946
  msgstr ""
947
 
948
- #: templates/map-loop.php:3
949
  msgid "Results"
950
  msgstr ""
951
 
952
- #: templates/map-search.php:4
953
  msgid "Your Location"
954
  msgstr ""
955
- #. Plugin Name of the plugin/theme
956
  msgid "MapPress Maps for WordPress"
957
  msgstr ""
958
 
959
- #. Plugin URI of the plugin/theme
960
  msgid "https://www.mappresspro.com/mappress"
961
  msgstr ""
962
 
963
- #. Description of the plugin/theme
964
  msgid "MapPress makes it easy to add Google and Leaflet Maps to WordPress"
965
  msgstr ""
966
 
967
- #. Author of the plugin/theme
968
  msgid "Chris Richardson"
969
  msgstr ""
970
 
971
- #. Author URI of the plugin/theme
972
  msgid "https://www.mappresspro.com/chris-contact"
973
  msgstr ""
1
+ '# 'Copyright (C) 2020 MapPress Maps for WordPress
2
+ '# 'This file is distributed under the same license as the MapPress Maps for WordPress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MapPress Maps for WordPress 2.53.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
+ "POT-Creation-Date: 2020-03-04 09:55:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ '#: 'forms/editor.php:11
16
  msgid "Add KML"
17
  msgstr ""
18
 
19
+ '#: 'forms/editor.php:47
20
  msgid "Visual"
21
  msgstr ""
22
 
23
+ '#: 'forms/editor.php:47
24
  msgid "HTML"
25
  msgstr ""
26
 
27
+ '#: 'forms/editor.php:53 forms/media.php:49 forms/settings.php:41
28
  msgid "Save"
29
  msgstr ""
30
 
31
+ '#: 'forms/editor.php:54 forms/media.php:50 forms/settings.php:42
32
  msgid "Cancel"
33
  msgstr ""
34
 
35
+ '#: 'forms/editor.php:55 forms/media.php:72 forms/settings.php:44
36
+ '#: 'mappress_controls.php:102
37
  msgid "Delete"
38
  msgstr ""
39
 
40
+ '#: 'forms/media.php:7
41
  msgid "New Map"
42
  msgstr ""
43
 
44
+ '#: 'forms/media.php:9
45
  msgid "This post"
46
  msgstr ""
47
 
48
+ '#: 'forms/media.php:10 pro/mappress_widget.php:84
49
  msgid "All posts"
50
  msgstr ""
51
 
52
+ '#: 'forms/media.php:12
53
  msgid "Filter by title"
54
  msgstr ""
55
 
56
+ '#: 'forms/media.php:21
57
  msgid "Map ID"
58
  msgstr ""
59
 
60
+ '#: 'forms/media.php:26
61
  msgid "Map Title"
62
  msgstr ""
63
 
64
+ '#: 'forms/media.php:27 forms/media.php:63 forms/media.php:67 mappress.php:415
65
  msgid "Untitled"
66
  msgstr ""
67
 
68
+ '#: 'forms/media.php:31
69
  msgid "Display Size"
70
  msgstr ""
71
 
72
+ '#: 'forms/media.php:44
73
  msgid "Save center / zoom"
74
  msgstr ""
75
 
76
+ '#: 'forms/media.php:51 forms/media.php:71
77
  msgid "Insert into post"
78
  msgstr ""
79
 
80
+ '#: 'forms/media.php:70 forms/settings.php:4 forms/settings.php:18
81
  msgid "Edit"
82
  msgstr ""
83
 
84
+ '#: 'forms/media.php:79
85
  msgid "No maps found"
86
  msgstr ""
87
 
88
+ '#: 'forms/settings.php:24
89
  msgid "New"
90
  msgstr ""
91
 
92
+ '#: 'forms/settings.php:24
93
  msgid "Custom"
94
  msgstr ""
95
 
96
+ '#: 'forms/settings.php:27
97
  msgid "Editor"
98
  msgstr ""
99
 
100
+ '#: 'forms/settings.php:28 mappress_settings.php:184
101
+ '#: 'pro/mappress_pro_settings.php:219
102
  msgid "Default"
103
  msgstr ""
104
 
105
+ '#: 'mappress.php:153
106
  msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
107
  msgstr ""
108
 
109
+ '#: 'mappress.php:158
110
  msgid "WARNING: MapPress is not compatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
111
  msgstr ""
112
 
113
+ '#: 'mappress.php:163
114
  msgid "A Google Maps API key is required"
115
  msgstr ""
116
 
117
+ '#: 'mappress.php:163
118
  msgid "Please update your"
119
  msgstr ""
120
 
121
+ '#: 'mappress.php:163
122
  msgid "MapPress Settings"
123
  msgstr ""
124
 
125
+ '#: 'mappress.php:314 mappress.php:765
126
  msgid "Version"
127
  msgstr ""
128
 
129
+ '#: 'mappress.php:315
130
  msgid "Documentation"
131
  msgstr ""
132
 
133
+ '#: 'mappress.php:316
134
  msgid "Support"
135
  msgstr ""
136
 
137
+ '#: 'mappress.php:318
138
  msgid "Upgrade to MapPress Pro"
139
  msgstr ""
140
 
141
+ '#: 'mappress.php:404
142
  msgid "Are you sure you want to delete?"
143
  msgstr ""
144
 
145
+ '#: 'mappress.php:405
146
  msgid "Delete this map?"
147
  msgstr ""
148
 
149
+ '#: 'mappress.php:406
150
  msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
151
  msgstr ""
152
 
153
+ '#: 'mappress.php:407
154
  msgid "Error reading KML file"
155
  msgstr ""
156
 
157
+ '#: 'mappress.php:408
158
  msgid "URL for KML file"
159
  msgstr ""
160
 
161
+ '#: 'mappress.php:409
162
  msgid "Loading"
163
  msgstr ""
164
 
165
+ '#: 'mappress.php:410
166
  msgid "%d of %d shown"
167
  msgstr ""
168
 
169
+ '#: 'mappress.php:411
170
  msgid "Unable to get your location"
171
  msgstr ""
172
 
173
+ '#: 'mappress.php:412
174
  msgid "No results"
175
  msgstr ""
176
 
177
+ '#: 'mappress.php:413
178
  msgid "Save changes?"
179
  msgstr ""
180
 
181
+ '#: 'mappress.php:414
182
  msgid "Shape"
183
  msgstr ""
184
 
185
+ '#: 'mappress.php:439
186
  msgid "Improve this map"
187
  msgstr ""
188
 
189
+ '#: 'mappress.php:455 mappress.php:474
190
  msgid "Streets"
191
  msgstr ""
192
 
193
+ '#: 'mappress.php:456
194
  msgid "Outdoors"
195
  msgstr ""
196
 
197
+ '#: 'mappress.php:457
198
  msgid "Light"
199
  msgstr ""
200
 
201
+ '#: 'mappress.php:458
202
  msgid "Dark"
203
  msgstr ""
204
 
205
+ '#: 'mappress.php:459
206
  msgid "Satellite"
207
  msgstr ""
208
 
209
+ '#: 'mappress.php:460
210
  msgid "Satellite Streets"
211
  msgstr ""
212
 
213
+ '#: 'mappress.php:548
214
  msgid "Settings"
215
  msgstr ""
216
 
217
+ '#: 'mappress_controls.php:93
218
  msgid "Add"
219
  msgstr ""
220
 
221
+ '#: 'mappress_map.php:91 mappress_settings.php:306
222
  msgid "MapPress"
223
  msgstr ""
224
 
225
+ '#: 'mappress_map.php:163
226
  msgid "Map not found"
227
  msgstr ""
228
 
229
+ '#: 'mappress_map.php:423 pro/mappress_pro_settings.php:37
230
  msgid "Filter"
231
  msgstr ""
232
 
233
+ '#: 'mappress_map.php:456
234
  msgid "Show map"
235
  msgstr ""
236
 
237
+ '#: 'mappress_map.php:460
238
  msgid "Map"
239
  msgstr ""
240
 
241
+ '#: 'mappress_map.php:461
242
  msgid "List"
243
  msgstr ""
244
 
245
+ '#: 'mappress_settings.php:84
246
  msgid "Sample Map"
247
  msgstr ""
248
 
249
+ '#: 'mappress_settings.php:86
250
  msgid "Basic Settings"
251
  msgstr ""
252
 
253
+ '#: 'mappress_settings.php:87
254
  msgid "Mapping Engine"
255
  msgstr ""
256
 
257
+ '#: 'mappress_settings.php:90
258
  msgid "Mapbox access token"
259
  msgstr ""
260
 
261
+ '#: 'mappress_settings.php:92
262
  msgid "Google API key"
263
  msgstr ""
264
 
265
+ '#: 'mappress_settings.php:97
266
  msgid "License"
267
  msgstr ""
268
 
269
+ '#: 'mappress_settings.php:99
270
  msgid "Map Settings"
271
  msgstr ""
272
 
273
+ '#: 'mappress_settings.php:100
274
  msgid "Post types"
275
  msgstr ""
276
 
277
+ '#: 'mappress_settings.php:101
278
  msgid "Automatic display"
279
  msgstr ""
280
 
281
+ '#: 'mappress_settings.php:102
282
  msgid "Map alignment"
283
  msgstr ""
284
 
285
+ '#: 'mappress_settings.php:103 templates/map-popup.php:3
286
+ '#: 'templates/mashup-popup.php:6
287
  msgid "Directions"
288
  msgstr ""
289
 
290
+ '#: 'mappress_settings.php:105
291
  msgid "POI Settings"
292
  msgstr ""
293
 
294
+ '#: 'mappress_settings.php:106
295
  msgid "Default zoom"
296
  msgstr ""
297
 
298
+ '#: 'mappress_settings.php:107 mappress_settings.php:249
299
  msgid "Open first POI"
300
  msgstr ""
301
 
302
+ '#: 'mappress_settings.php:110
303
  msgid "Mashups"
304
  msgstr ""
305
 
306
+ '#: 'mappress_settings.php:111
307
  msgid "Icons"
308
  msgstr ""
309
 
310
+ '#: 'mappress_settings.php:112
311
  msgid "Styled Maps"
312
  msgstr ""
313
 
314
+ '#: 'mappress_settings.php:113
315
  msgid "Geocoding"
316
  msgstr ""
317
 
318
+ '#: 'mappress_settings.php:114
319
  msgid "Templates"
320
  msgstr ""
321
 
322
+ '#: 'mappress_settings.php:117
323
  msgid "Localization"
324
  msgstr ""
325
 
326
+ '#: 'mappress_settings.php:118
327
  msgid "Language"
328
  msgstr ""
329
 
330
+ '#: 'mappress_settings.php:119
331
  msgid "Country"
332
  msgstr ""
333
 
334
+ '#: 'mappress_settings.php:120
335
  msgid "Directions server"
336
  msgstr ""
337
 
338
+ '#: 'mappress_settings.php:122
339
  msgid "Miscellaneous"
340
  msgstr ""
341
 
342
+ '#: 'mappress_settings.php:124
343
  msgid "Compatiblity"
344
  msgstr ""
345
 
346
+ '#: 'mappress_settings.php:125
347
  msgid "Scripts"
348
  msgstr ""
349
 
350
+ '#: 'mappress_settings.php:126
351
  msgid "Map sizes"
352
  msgstr ""
353
 
354
+ '#: 'mappress_settings.php:185
355
  msgid "Center"
356
  msgstr ""
357
 
358
+ '#: 'mappress_settings.php:186
359
  msgid "Left"
360
  msgstr ""
361
 
362
+ '#: 'mappress_settings.php:187
363
  msgid "Right"
364
  msgstr ""
365
 
366
+ '#: 'mappress_settings.php:201
367
  msgid "Top of post"
368
  msgstr ""
369
 
370
+ '#: 'mappress_settings.php:202
371
  msgid "Bottom of post"
372
  msgstr ""
373
 
374
+ '#: 'mappress_settings.php:203
375
  msgid "None"
376
  msgstr ""
377
 
378
+ '#: 'mappress_settings.php:210 mappress_settings.php:254
379
  msgid "(list)"
380
  msgstr ""
381
 
382
+ '#: 'mappress_settings.php:215
383
  msgid "Country code for searches"
384
  msgstr ""
385
 
386
+ '#: 'mappress_settings.php:219
387
  msgid "Prevent other plugins/themes from loading the Google Maps API"
388
  msgstr ""
389
 
390
+ '#: 'mappress_settings.php:223 mappress_settings.php:232
391
  msgid "Google"
392
  msgstr ""
393
 
394
+ '#: 'mappress_settings.php:223
395
  msgid "Inline"
396
  msgstr ""
397
 
398
+ '#: 'mappress_settings.php:232
399
  msgid "Leaflet"
400
  msgstr ""
401
 
402
+ '#: 'mappress_settings.php:234
403
  msgid "Leaflet is free and requires no API key. Google requires an API key and has strict usage limits."
404
  msgstr ""
405
 
406
+ '#: 'mappress_settings.php:240 mappress_settings.php:243
407
  msgid "Output scripts in footer"
408
  msgstr ""
409
 
410
+ '#: 'mappress_settings.php:241
411
  msgid "Disabled because Jetpack Infinite Scroll is active"
412
  msgstr ""
413
 
414
+ '#: 'mappress_settings.php:244
415
  msgid "disable if maps are output using AJAX"
416
  msgstr ""
417
 
418
+ '#: 'mappress_settings.php:257
419
  msgid "Language for map controls"
420
  msgstr ""
421
 
422
+ '#: 'mappress_settings.php:261
423
  msgid "Enter token to use Mapbox map tiles"
424
  msgstr ""
425
 
426
+ '#: 'mappress_settings.php:268
427
  msgid "Default zoom when displaying a single POI"
428
  msgstr ""
429
 
430
+ '#: 'mappress_settings.php:281
431
  msgid "Easy Google Maps"
432
  msgstr ""
433
 
434
+ '#: 'mappress_settings.php:289
435
  msgid "Width (px or %)"
436
  msgstr ""
437
 
438
+ '#: 'mappress_settings.php:289
439
  msgid "Height (px)"
440
  msgstr ""
441
 
442
+ '#: 'mappress_settings.php:289
443
  msgid "Default size"
444
  msgstr ""
445
 
446
+ '#: 'mappress_settings.php:311 mappress_settings.php:319
447
  msgid "Save Changes"
448
  msgstr ""
449
 
450
+ '#: 'mappress_settings.php:312 mappress_settings.php:320
451
  msgid "Reset Defaults"
452
  msgstr ""
453
 
454
+ '#: 'mappress_template.php:25
455
  msgid "address"
456
  msgstr ""
457
 
458
+ '#: 'mappress_template.php:26
459
  msgid "body"
460
  msgstr ""
461
 
462
+ '#: 'mappress_template.php:27
463
  msgid "icon"
464
  msgstr ""
465
 
466
+ '#: 'mappress_template.php:28
467
  msgid "thumbnail"
468
  msgstr ""
469
 
470
+ '#: 'mappress_template.php:29
471
  msgid "title"
472
  msgstr ""
473
 
474
+ '#: 'mappress_template.php:30
475
  msgid "url"
476
  msgstr ""
477
 
478
+ '#: 'mappress_template.php:31
479
  msgid "custom field"
480
  msgstr ""
481
 
482
+ '#: 'pro/mappress_filter.php:93 pro/mappress_filter.php:142
483
+ '#: 'pro/mappress_pro_settings.php:155
484
  msgid "Post type"
485
  msgstr ""
486
 
487
+ '#: 'pro/mappress_filter.php:129
488
  msgid "Taxonomy"
489
  msgstr ""
490
 
491
+ '#: 'pro/mappress_filter.php:129
492
  msgid "Post field"
493
  msgstr ""
494
 
495
+ '#: 'pro/mappress_filter.php:129 pro/mappress_pro_settings.php:314
496
  msgid "Custom Field"
497
  msgstr ""
498
 
499
+ '#: 'pro/mappress_geocoder.php:29
500
  msgid "Invalid geocoder: %s"
501
  msgstr ""
502
 
503
+ '#: 'pro/mappress_geocoder.php:59 pro/mappress_geocoder.php:110
504
+ '#: 'pro/mappress_geocoder.php:147 pro/mappress_geocoder.php:183
505
  msgid "No results for address: %s"
506
  msgstr ""
507
 
508
+ '#: 'pro/mappress_geocoder.php:82
509
  msgid "Server API Key is missing - see MapPress Settings"
510
  msgstr ""
511
 
512
+ '#: 'pro/mappress_geocoder.php:100
513
  msgid "Invalid status: %s, %s Address: %s"
514
  msgstr ""
515
 
516
+ '#: 'pro/mappress_geocoder.php:212
517
  msgid "Error: %s %s"
518
  msgstr ""
519
 
520
+ '#: 'pro/mappress_geocoder.php:217
521
  msgid "Invalid JSON from Geocoding service: %s"
522
  msgstr ""
523
 
524
+ '#: 'pro/mappress_icons.php:47
525
  msgid "Use default icon"
526
  msgstr ""
527
 
528
+ '#: 'pro/mappress_icons.php:57
529
  msgid "Opacity"
530
  msgstr ""
531
 
532
+ '#: 'pro/mappress_icons.php:58
533
  msgid "Weight"
534
  msgstr ""
535
 
536
+ '#: 'pro/mappress_meta.php:109
537
  msgid "Automatic"
538
  msgstr ""
539
 
540
+ '#: 'pro/mappress_pro_settings.php:16
541
  msgid "MapPress license key"
542
  msgstr ""
543
 
544
+ '#: 'pro/mappress_pro_settings.php:17
545
  msgid "Beta versions"
546
  msgstr ""
547
 
548
+ '#: 'pro/mappress_pro_settings.php:21
549
  msgid "Geocoder"
550
  msgstr ""
551
 
552
+ '#: 'pro/mappress_pro_settings.php:23
553
  msgid "POI list"
554
  msgstr ""
555
 
556
+ '#: 'pro/mappress_pro_settings.php:24
557
  msgid "POI list layout"
558
  msgstr ""
559
 
560
+ '#: 'pro/mappress_pro_settings.php:25
561
  msgid "Sort"
562
  msgstr ""
563
 
564
+ '#: 'pro/mappress_pro_settings.php:28
565
  msgid "Popup type"
566
  msgstr ""
567
 
568
+ '#: 'pro/mappress_pro_settings.php:30
569
  msgid "Default icon"
570
  msgstr ""
571
 
572
+ '#: 'pro/mappress_pro_settings.php:31
573
  msgid "Icon directory"
574
  msgstr ""
575
 
576
+ '#: 'pro/mappress_pro_settings.php:32
577
  msgid "Icon scaling"
578
  msgstr ""
579
 
580
+ '#: 'pro/mappress_pro_settings.php:33
581
  msgid "Automatic icons"
582
  msgstr ""
583
 
584
+ '#: 'pro/mappress_pro_settings.php:35 templates/map-search.php:2
585
  msgid "Search"
586
  msgstr ""
587
 
588
+ '#: 'pro/mappress_pro_settings.php:38
589
  msgid "POI content"
590
  msgstr ""
591
 
592
+ '#: 'pro/mappress_pro_settings.php:39
593
  msgid "POI click"
594
  msgstr ""
595
 
596
+ '#: 'pro/mappress_pro_settings.php:40
597
  msgid "KMLs"
598
  msgstr ""
599
 
600
+ '#: 'pro/mappress_pro_settings.php:41
601
  msgid "Thumbnails"
602
  msgstr ""
603
 
604
+ '#: 'pro/mappress_pro_settings.php:42
605
  msgid "Thumbnail size"
606
  msgstr ""
607
 
608
+ '#: 'pro/mappress_pro_settings.php:45 pro/mappress_pro_settings.php:47
609
  msgid "Styled maps"
610
  msgstr ""
611
 
612
+ '#: 'pro/mappress_pro_settings.php:48
613
  msgid "Default style"
614
  msgstr ""
615
 
616
+ '#: 'pro/mappress_pro_settings.php:51
617
  msgid "Geocoding fields"
618
  msgstr ""
619
 
620
+ '#: 'pro/mappress_pro_settings.php:52
621
  msgid "Overwrite"
622
  msgstr ""
623
 
624
+ '#: 'pro/mappress_pro_settings.php:53
625
  msgid "Geocoding errors"
626
  msgstr ""
627
 
628
+ '#: 'pro/mappress_pro_settings.php:56
629
  msgid "Google Server API key"
630
  msgstr ""
631
 
632
+ '#: 'pro/mappress_pro_settings.php:58
633
  msgid "Custom templates"
634
  msgstr ""
635
 
636
+ '#: 'pro/mappress_pro_settings.php:60
637
  msgid "Force resize"
638
  msgstr ""
639
 
640
+ '#: 'pro/mappress_pro_settings.php:142
641
  msgid "more info"
642
  msgstr ""
643
 
644
+ '#: 'pro/mappress_pro_settings.php:143
645
  msgid "API key secured by IP address for geocoding (optional)"
646
  msgstr ""
647
 
648
+ '#: 'pro/mappress_pro_settings.php:162
649
  msgid "Value"
650
  msgstr ""
651
 
652
+ '#: 'pro/mappress_pro_settings.php:162 pro/mappress_pro_settings.php:309
653
  msgid "Icon"
654
  msgstr ""
655
 
656
+ '#: 'pro/mappress_pro_settings.php:177
657
  msgid "Enable updates for beta versions"
658
  msgstr ""
659
 
660
+ '#: 'pro/mappress_pro_settings.php:190
661
  msgid "Checkboxes"
662
  msgstr ""
663
 
664
+ '#: 'pro/mappress_pro_settings.php:190
665
  msgid "Select"
666
  msgstr ""
667
 
668
+ '#: 'pro/mappress_pro_settings.php:197
669
  msgid "Key"
670
  msgstr ""
671
 
672
+ '#: 'pro/mappress_pro_settings.php:197
673
  msgid "Format"
674
  msgstr ""
675
 
676
+ '#: 'pro/mappress_pro_settings.php:212
677
  msgid "Permanently resize existing maps"
678
  msgstr ""
679
 
680
+ '#: 'pro/mappress_pro_settings.php:214
681
  msgid "from %s to %s"
682
  msgstr ""
683
 
684
+ '#: 'pro/mappress_pro_settings.php:215
685
  msgid "Force Resize"
686
  msgstr ""
687
 
688
+ '#: 'pro/mappress_pro_settings.php:219
689
  msgid "Algolia"
690
  msgstr ""
691
 
692
+ '#: 'pro/mappress_pro_settings.php:220
693
  msgid "Nominatim"
694
  msgstr ""
695
 
696
+ '#: 'pro/mappress_pro_settings.php:221
697
  msgid "MapBox"
698
  msgstr ""
699
 
700
+ '#: 'pro/mappress_pro_settings.php:235
701
  msgid "Standard"
702
  msgstr ""
703
 
704
+ '#: 'pro/mappress_pro_settings.php:236
705
  msgid "InfoBox"
706
  msgstr ""
707
 
708
+ '#: 'pro/mappress_pro_settings.php:243
709
+ msgid "Left of map"
710
  msgstr ""
711
 
712
+ '#: 'pro/mappress_pro_settings.php:244
713
+ msgid "Below map"
714
  msgstr ""
715
 
716
+ '#: 'pro/mappress_pro_settings.php:250
717
  msgid "Enter license to enable automatic updates"
718
  msgstr ""
719
 
720
+ '#: 'pro/mappress_pro_settings.php:261
721
  msgid "Active"
722
  msgstr ""
723
 
724
+ '#: 'pro/mappress_pro_settings.php:266
725
  msgid "Check Now"
726
  msgstr ""
727
 
728
+ '#: 'pro/mappress_pro_settings.php:270
729
  msgid "Communication error, please try again later"
730
  msgstr ""
731
 
732
+ '#: 'pro/mappress_pro_settings.php:272
733
  msgid "License is invalid or expired"
734
  msgstr ""
735
 
736
+ '#: 'pro/mappress_pro_settings.php:276
737
  msgid "POI title + body"
738
  msgstr ""
739
 
740
+ '#: 'pro/mappress_pro_settings.php:276
741
  msgid "Post title + excerpt"
742
  msgstr ""
743
 
744
+ '#: 'pro/mappress_pro_settings.php:281
745
  msgid "Open POI"
746
  msgstr ""
747
 
748
+ '#: 'pro/mappress_pro_settings.php:281
749
  msgid "Open post"
750
  msgstr ""
751
 
752
+ '#: 'pro/mappress_pro_settings.php:281
753
  msgid "Open post in new tab"
754
  msgstr ""
755
 
756
+ '#: 'pro/mappress_pro_settings.php:286
757
  msgid "Include KML POIs in mashups"
758
  msgstr ""
759
 
760
+ '#: 'pro/mappress_pro_settings.php:298
761
  msgid "%d Errors"
762
  msgstr ""
763
 
764
+ '#: 'pro/mappress_pro_settings.php:308
765
  msgid "Address line "
766
  msgstr ""
767
 
768
+ '#: 'pro/mappress_pro_settings.php:309
769
  msgid "Latitude"
770
  msgstr ""
771
 
772
+ '#: 'pro/mappress_pro_settings.php:309
773
  msgid "Longitude"
774
  msgstr ""
775
 
776
+ '#: 'pro/mappress_pro_settings.php:309
777
  msgid "Title"
778
  msgstr ""
779
 
780
+ '#: 'pro/mappress_pro_settings.php:309
781
  msgid "Body"
782
  msgstr ""
783
 
784
+ '#: 'pro/mappress_pro_settings.php:309
785
  msgid "Zoom"
786
  msgstr ""
787
 
788
+ '#: 'pro/mappress_pro_settings.php:314
789
  msgid "Map Field"
790
  msgstr ""
791
 
792
+ '#: 'pro/mappress_pro_settings.php:327
793
  msgid "Overwrite maps when posts are saved"
794
  msgstr ""
795
 
796
+ '#: 'pro/mappress_pro_settings.php:331
797
  msgid "Show a list of POIs with each map"
798
  msgstr ""
799
 
800
+ '#: 'pro/mappress_pro_settings.php:339
801
  msgid "Enable search"
802
  msgstr ""
803
 
804
+ '#: 'pro/mappress_pro_settings.php:343
805
  msgid "Sort POI list by title"
806
  msgstr ""
807
 
808
+ '#: 'pro/mappress_pro_settings.php:349
809
  msgid "No styles have been defined yet"
810
  msgstr ""
811
 
812
+ '#: 'pro/mappress_pro_settings.php:358
813
  msgid "Styled Maps Wizard"
814
  msgstr ""
815
 
816
+ '#: 'pro/mappress_pro_settings.php:359
817
  msgid "JSON from Google's %s"
818
  msgstr ""
819
 
820
+ '#: 'pro/mappress_pro_settings.php:363 pro/mappress_pro_settings.php:379
821
  msgid "Style name"
822
  msgstr ""
823
 
824
+ '#: 'pro/mappress_pro_settings.php:375
825
  msgid "Mapbox Studio"
826
  msgstr ""
827
 
828
+ '#: 'pro/mappress_pro_settings.php:376
829
  msgid "Enter styles from %s"
830
  msgstr ""
831
 
832
+ '#: 'pro/mappress_pro_settings.php:394
833
  msgid "Only admins or multisite super-admins can edit templates"
834
  msgstr ""
835
 
836
+ '#: 'pro/mappress_pro_settings.php:399
837
  msgid "WordPress 4.9 or higher is needed to use the template editor."
838
  msgstr ""
839
 
840
+ '#: 'pro/mappress_pro_settings.php:405
841
  msgid "Map popup"
842
  msgstr ""
843
 
844
+ '#: 'pro/mappress_pro_settings.php:406
845
  msgid "Map list item"
846
  msgstr ""
847
 
848
+ '#: 'pro/mappress_pro_settings.php:407
849
  msgid "Mashup popup"
850
  msgstr ""
851
 
852
+ '#: 'pro/mappress_pro_settings.php:408
853
  msgid "Mashup list item"
854
  msgstr ""
855
 
856
+ '#: 'pro/mappress_pro_settings.php:422
857
  msgid "or "
858
  msgstr ""
859
 
860
+ '#: 'pro/mappress_pro_settings.php:430
861
  msgid "Show featured image thumbnails in mashup POIs"
862
  msgstr ""
863
 
864
+ '#: 'pro/mappress_updater.php:117
865
  msgid "Communication error"
866
  msgstr ""
867
 
868
+ '#: 'pro/mappress_updater.php:123
869
  msgid "JSON error"
870
  msgstr ""
871
 
872
+ '#: 'pro/mappress_widget.php:69
873
  msgid "Widget title"
874
  msgstr ""
875
 
876
+ '#: 'pro/mappress_widget.php:74
877
  msgid "Map size"
878
  msgstr ""
879
 
880
+ '#: 'pro/mappress_widget.php:80
881
  msgid "Show"
882
  msgstr ""
883
 
884
+ '#: 'pro/mappress_widget.php:81
885
  msgid "Current posts"
886
  msgstr ""
887
 
888
+ '#: 'pro/mappress_widget.php:82
889
  msgid "Hide if empty"
890
  msgstr ""
891
 
892
+ '#: 'pro/mappress_widget.php:85
893
  msgid "Custom query"
894
  msgstr ""
895
 
896
+ '#: 'pro/mappress_widget.php:88
897
  msgid "Learn about queries"
898
  msgstr ""
899
 
900
+ '#: 'pro/mappress_widget.php:93
901
  msgid "Show POI list"
902
  msgstr ""
903
 
904
+ '#: 'pro/mappress_widget.php:99
905
  msgid "Other Settings"
906
  msgstr ""
907
 
908
+ '#: 'pro/mappress_widget.php:102
909
  msgid "Example: initialopeninfo=\"true\""
910
  msgstr ""
911
 
912
+ '#: 'templates/map-controls.php:1
913
  msgid "Menu"
914
  msgstr ""
915
 
916
+ '#: 'templates/map-controls.php:3
917
  msgid "Center map"
918
  msgstr ""
919
 
920
+ '#: 'templates/map-controls.php:6
921
  msgid "Traffic"
922
  msgstr ""
923
 
924
+ '#: 'templates/map-controls.php:7
925
  msgid "Bicycling"
926
  msgstr ""
927
 
928
+ '#: 'templates/map-controls.php:8
929
  msgid "Transit"
930
  msgstr ""
931
 
932
+ '#: 'templates/map-directions.php:4
933
  msgid "My location"
934
  msgstr ""
935
 
936
+ '#: 'templates/map-directions.php:16
937
  msgid "Get Directions"
938
  msgstr ""
939
 
940
+ '#: 'templates/map-filters.php:9
941
  msgid "Done"
942
  msgstr ""
943
 
944
+ '#: 'templates/map-filters.php:10
945
  msgid "Reset"
946
  msgstr ""
947
 
948
+ '#: 'templates/map-loop.php:3
949
  msgid "Results"
950
  msgstr ""
951
 
952
+ '#: 'templates/map-search.php:4
953
  msgid "Your Location"
954
  msgstr ""
955
+ '#. 'Plugin Name of the plugin/theme
956
  msgid "MapPress Maps for WordPress"
957
  msgstr ""
958
 
959
+ '#. 'Plugin URI of the plugin/theme
960
  msgid "https://www.mappresspro.com/mappress"
961
  msgstr ""
962
 
963
+ '#. 'Description of the plugin/theme
964
  msgid "MapPress makes it easy to add Google and Leaflet Maps to WordPress"
965
  msgstr ""
966
 
967
+ '#. 'Author of the plugin/theme
968
  msgid "Chris Richardson"
969
  msgstr ""
970
 
971
+ '#. 'Author URI of the plugin/theme
972
  msgid "https://www.mappresspro.com/chris-contact"
973
  msgstr ""
languages/texts.php CHANGED
@@ -171,8 +171,8 @@ __("Nominatim");
171
  __("MapBox");
172
  __("Standard");
173
  __("InfoBox");
174
- __("Below map");
175
  __("Left of map");
 
176
  __("Enter license to enable automatic updates");
177
  __("Active");
178
  __("Check Now");
171
  __("MapBox");
172
  __("Standard");
173
  __("InfoBox");
 
174
  __("Left of map");
175
+ __("Below map");
176
  __("Enter license to enable automatic updates");
177
  __("Active");
178
  __("Check Now");
mappress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: MapPress Maps for WordPress
4
  Plugin URI: https://www.mappresspro.com/mappress
5
  Author URI: https://www.mappresspro.com/chris-contact
6
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
- Version: 2.53.5
8
  Author: Chris Richardson
9
  Text Domain: mappress-google-maps-for-wordpress
10
  Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
@@ -35,7 +35,7 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
35
  }
36
 
37
  class Mappress {
38
- const VERSION = '2.53.5';
39
 
40
  static
41
  $baseurl,
4
  Plugin URI: https://www.mappresspro.com/mappress
5
  Author URI: https://www.mappresspro.com/chris-contact
6
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
+ Version: 2.53.6
8
  Author: Chris Richardson
9
  Text Domain: mappress-google-maps-for-wordpress
10
  Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
35
  }
36
 
37
  class Mappress {
38
+ const VERSION = '2.53.6';
39
 
40
  static
41
  $baseurl,
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
- Stable tag: 2.53.5
8
 
9
  == Description ==
10
  MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
@@ -86,6 +86,13 @@ Please see the plugin documentation pages:
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
 
89
  = 2.53.5 =
90
  * Added: curly braces can now be used in mashup queries to pass array parameters
91
  * Changed: map layout switched to CSS flex
4
  Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
+ Stable tag: 2.53.6
8
 
9
  == Description ==
10
  MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
86
 
87
  == Changelog ==
88
 
89
+ = 2.53.6 =
90
+ * Changed: additional CSS changes to migrate layout to flex
91
+ * Changed: map font set to sans-serif to override themes
92
+ * Fixed: warning in settings when switching map engine type
93
+ * Fixed: warning in PHP log when displaying empty mashups
94
+ * Fixed: mashup sometimes deselected current POI in list for small maps
95
+
96
  = 2.53.5 =
97
  * Added: curly braces can now be used in mashup queries to pass array parameters
98
  * Changed: map layout switched to CSS flex
templates/map-header.php CHANGED
@@ -1,7 +1,5 @@
1
  <div class='mapp-header'>
2
- <div>
3
- <?php echo $map->part('search'); ?>
4
- <?php echo $map->part('filters-toggle');?>
5
- </div>
6
  </div>
7
 
1
  <div class='mapp-header'>
2
+ <?php echo $map->part('search'); ?>
3
+ <?php echo $map->part('filters-toggle');?>
 
 
4
  </div>
5
 
templates/map-loop.php CHANGED
@@ -7,7 +7,7 @@
7
  <div class="mapp-items">
8
  <# _.forEach(pois, function(poi, i) { #>
9
  <# if (!poi.visible) { return; } #>
10
- <div class="mapp-item" data-mapp-action="open" data-mapp-poi="{{{i}}}">
11
  <# print(poi.render('item')); #>
12
  </div>
13
  <# }); #>
7
  <div class="mapp-items">
8
  <# _.forEach(pois, function(poi, i) { #>
9
  <# if (!poi.visible) { return; } #>
10
+ <div class="mapp-item {{ (map.poi==poi) ? 'mapp-selected' : ''}}" data-mapp-action="open" data-mapp-poi="{{{i}}}">
11
  <# print(poi.render('item')); #>
12
  </div>
13
  <# }); #>
templates/map.php CHANGED
@@ -1,14 +1,16 @@
1
  <div <?php echo $map->part('layout-atts');?>>
2
- <?php echo $map->part('header'); ?>
3
  <div class='mapp-wrapper' style='<?php echo $map->part('wrapper-style');?>' >
4
- <div class='mapp-main'>
5
- <?php echo $map->part('filters'); ?>
6
- <?php echo $map->part('list-left'); ?>
7
- <div class='mapp-canvas-panel'>
8
- <?php echo $map->part('canvas'); ?>
9
- <?php echo $map->part('controls'); ?>
10
- <?php echo $map->part('iw'); ?>
11
- <div class='mapp-dialog'></div>
 
 
 
12
  </div>
13
  </div>
14
  </div>
1
  <div <?php echo $map->part('layout-atts');?>>
 
2
  <div class='mapp-wrapper' style='<?php echo $map->part('wrapper-style');?>' >
3
+ <div class='mapp-content'>
4
+ <?php echo $map->part('header'); ?>
5
+ <div class='mapp-main'>
6
+ <?php echo $map->part('filters'); ?>
7
+ <?php echo $map->part('list-left'); ?>
8
+ <div class='mapp-canvas-panel'>
9
+ <?php echo $map->part('canvas'); ?>
10
+ <?php echo $map->part('controls'); ?>
11
+ <?php echo $map->part('iw'); ?>
12
+ <div class='mapp-dialog'></div>
13
+ </div>
14
  </div>
15
  </div>
16
  </div>