jQuery.template("appearance-menu",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<ul id="appearance-menu">   <li id="item-markers" class="'),typeof(visType=="marker"&&layerType=="point"?"active":null)!="undefined"&&(visType=="marker"&&layerType=="point"?"active":null)!=null&&__.push($.encode(typeof(visType=="marker"&&layerType=="point"?"active":null)=="function"?(visType=="marker"&&layerType=="point"?"active":null).call($item):visType=="marker"&&layerType=="point"?"active":null)),__.push('"><span class="icon markers"><\/span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/appearance-menu.htm","Markers"))),__.push('<\/li>   <li id="item-bubbles" class="'),typeof(visType=="bubble"&&layerType=="point"?"active":null)!="undefined"&&(visType=="bubble"&&layerType=="point"?"active":null)!=null&&__.push($.encode(typeof(visType=="bubble"&&layerType=="point"?"active":null)=="function"?(visType=="bubble"&&layerType=="point"?"active":null).call($item):visType=="bubble"&&layerType=="point"?"active":null)),__.push('"><span class="icon bubbles"><\/span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/appearance-menu.htm","Bubbles"))),__.push("<\/li>   "),typeof heatmap!="undefined"&&heatmap!=null&&(typeof heatmap=="function"?heatmap.call($item):heatmap)&&(__.push('    <li id="item-heatmap" class="'),typeof(layerType=="region"?"active":null)!="undefined"&&(layerType=="region"?"active":null)!=null&&__.push($.encode(typeof(layerType=="region"?"active":null)=="function"?(layerType=="region"?"active":null).call($item):layerType=="region"?"active":null)),__.push('"><span class="icon heatmap"><\/span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/appearance-menu.htm","Heatmap"))),__.push("<\/li>   ")),__.push("  <\/ul>");return __});jQuery.template("bubbles-scale",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div class="bubbles-scale" data-layerid="'),typeof $data!="undefined"&&$data!=null&&__.push($.encode(typeof $data=="function"?$data.call($item):$data)),__.push('">   <div class="dimension"><\/div>  <div class="intervals"><\/div> <\/div>');return __});jQuery.template("checkbox",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<input type="checkbox" id="'),typeof option!="undefined"&&option!=null&&__.push($.encode(typeof option=="function"?option.call($item):option)),__.push('" '),typeof checked!="undefined"&&checked!=null&&(typeof checked=="function"?checked.call($item):checked)&&__.push(" checked"),__.push(' /><label for="'),typeof option!="undefined"&&option!=null&&__.push($.encode(typeof option=="function"?option.call($item):option)),__.push('">'),typeof text!="undefined"&&text!=null&&__.push($.encode(typeof text=="function"?text.call($item):text)),__.push("<\/label>");return __});jQuery.template("color",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" class="color">'),typeof text!="undefined"&&text!=null&&__.push($.encode(typeof text=="function"?text.call($item):text)),__.push('<\/label> <select id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('"><\/select>');return __});jQuery.template("filter-entry",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="filter-entry edit" data-filterid="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">   <label>    '),typeof(type=="checkbox")!="undefined"&&type=="checkbox"!=null&&(typeof(type=="checkbox")=="function"?(type=="checkbox").call($item):type=="checkbox")?__.push('     <i class="filter-type fa fa-check-square-o"><\/i>    '):typeof(type=="combobox")!="undefined"&&type=="combobox"!=null&&(typeof(type=="combobox")=="function"?(type=="combobox").call($item):type=="combobox")?__.push('     <i class="filter-type fa fa-caret-square-o-down"><\/i>    '):typeof(type=="radio")!="undefined"&&type=="radio"!=null&&(typeof(type=="radio")=="function"?(type=="radio").call($item):type=="radio")?__.push('     <i class="filter-type fa fa-dot-circle-o"><\/i>    '):typeof(type=="slider")!="undefined"&&type=="slider"!=null&&(typeof(type=="slider")=="function"?(type=="slider").call($item):type=="slider")?__.push('     <i class="filter-type fa fa-sliders fa-rotate-90"><\/i>    '):typeof(type=="selection")!="undefined"&&type=="selection"!=null&&(typeof(type=="selection")=="function"?(type=="selection").call($item):type=="selection")&&__.push('     <i class="filter-type fa fa-bars"><\/i>    '),__.push('    <span class="filter-column">'),typeof(title||column)!="undefined"&&(title||column)!=null&&__.push($.encode(typeof(title||column)=="function"?(title||column).call($item):title||column)),__.push('<\/span>    <i class="delete-filter fa fa-trash-o" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-entry.htm","Delete filter"))),__.push('"><\/i>    <i class="edit-filter fa fa-pencil" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-entry.htm","Edit filter"))),__.push('"><\/i>   <\/label>  <\/div>');return __});jQuery.template("filter-new",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<div id='add-filter-dlg' title='"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Add filter"))),__.push("'>   <label for='filter-title'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Title"))),__.push("<\/label>   <input type='text' id='filter-title' />   <label for='filter-layer'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Layer"))),__.push("<\/label>   <select id='filter-layer'>    "),typeof layers!="undefined"&&layers!=null&&$.each(typeof layers=="function"?layers.call($item):layers,function(key,value){with(this)__.push("    <option value='"),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push("'>"),typeof value.name!="undefined"&&value.name!=null&&__.push($.encode(typeof value.name=="function"?value.name.call($item):value.name)),__.push("<\/option>    ")}),__.push("   <\/select>   <div id='filter-layer-error' class='error-message hidden'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Layer is required field"))),__.push("<\/div>   <label for='filter-column'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Column"))),__.push("<\/label>   <select id='filter-column'><\/select>   <div id='filter-column-error' class='error-message hidden'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Column is required field"))),__.push("<\/div>   <label for='filter-type'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Control"))),__.push("<\/label>   <select id='filter-type' disabled><\/select>   <div id='filter-type-error' class='error-message hidden'>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/filter-new.htm","Control is required field"))),__.push("<\/div>  <\/div>");return __});jQuery.template("group",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="group'),typeof(edit?" edit":"")!="undefined"&&(edit?" edit":"")!=null&&__.push($.encode(typeof(edit?" edit":"")=="function"?(edit?" edit":"").call($item):edit?" edit":"")),__.push(""),typeof(name=="dummy"?" dummy":"")!="undefined"&&(name=="dummy"?" dummy":"")!=null&&__.push($.encode(typeof(name=="dummy"?" dummy":"")=="function"?(name=="dummy"?" dummy":"").call($item):name=="dummy"?" dummy":"")),__.push(""),typeof(collapsed?" collapsed":"")!="undefined"&&(collapsed?" collapsed":"")!=null&&__.push($.encode(typeof(collapsed?" collapsed":"")=="function"?(collapsed?" collapsed":"").call($item):collapsed?" collapsed":"")),__.push('" data-name="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('">  <span class="title">   '),typeof(name!="dummy")!="undefined"&&name!="dummy"!=null&&(typeof(name!="dummy")=="function"?(name!="dummy").call($item):name!="dummy")&&(__.push('    <span class="arrow"><\/span>       '),typeof edit!="undefined"&&edit!=null&&(typeof edit=="function"?edit.call($item):edit)?(__.push('     <span class="name">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('<\/span><input class="text group-name" type="text" value="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" size="'),typeof name.length!="undefined"&&name.length!=null&&__.push($.encode(typeof name.length=="function"?name.length.call($item):name.length)),__.push('" data-name="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" /><i class="edit-group fa fa-pencil"><\/i><i class="delete-group fa fa-trash-o"><\/i>    ')):!0&&(__.push("     <span>"),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/span>      ")),__.push("      ")),__.push('  <\/span>  <div class="layers connectedSortable'),typeof(edit?" srtbl":"")!="undefined"&&(edit?" srtbl":"")!=null&&__.push($.encode(typeof(edit?" srtbl":"")=="function"?(edit?" srtbl":"").call($item):edit?" srtbl":"")),__.push('"><\/div> <\/div>');return __});jQuery.template("heatmap-scale",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div class="heatmap-scale" data-layerid="'),typeof $data!="undefined"&&$data!=null&&__.push($.encode(typeof $data=="function"?$data.call($item):$data)),__.push('">   <div class="dimension"><\/div>   <div class="intervals"><\/div>   <div class="bounds">    <span class="low"><\/span>    <span class="high"><\/span>   <\/div>  <\/div>');return __});jQuery.template("layer-control",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof edit!="undefined"&&edit!=null&&(typeof edit=="function"?edit.call($item):edit)?(__.push('   <div class="layer edit '),typeof(layer.selected?"selected":"")!="undefined"&&(layer.selected?"selected":"")!=null&&__.push($.encode(typeof(layer.selected?"selected":"")=="function"?(layer.selected?"selected":"").call($item):layer.selected?"selected":"")),__.push('" data-layerid="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">    <label>     <input type="checkbox" '),typeof(layer.visible?"checked":"")!="undefined"&&(layer.visible?"checked":"")!=null&&__.push($.encode(typeof(layer.visible?"checked":"")=="function"?(layer.visible?"checked":"").call($item):layer.visible?"checked":"")),__.push(' id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" />     <span class="name">'),typeof layer.name!="undefined"&&layer.name!=null&&__.push($.encode(typeof layer.name=="function"?layer.name.call($item):layer.name)),__.push('<\/span><input type="text" class="text layer-name" size="'),typeof layer.name.length!="undefined"&&layer.name.length!=null&&__.push($.encode(typeof layer.name.length=="function"?layer.name.length.call($item):layer.name.length)),__.push('"value="'),typeof layer.name!="undefined"&&layer.name!=null&&__.push($.encode(typeof layer.name=="function"?layer.name.call($item):layer.name)),__.push('"  data-name="'),typeof layer.name!="undefined"&&layer.name!=null&&__.push($.encode(typeof layer.name=="function"?layer.name.call($item):layer.name)),__.push('"/>     <i class="delete-layer fa fa-trash-o" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/layer-control.htm","Delete layer"))),__.push('"><\/i>     <i class="edit-name fa fa-pencil" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/layer-control.htm","Edit name"))),__.push('"><\/i>     <a href="'),typeof datasetUrl!="undefined"&&datasetUrl!=null&&__.push($.encode(typeof datasetUrl=="function"?datasetUrl.call($item):datasetUrl)),__.push('" target="_blank"><i class="fa fa-external-link" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/layer-control.htm","View data"))),__.push('"><\/i><\/a>    <\/label>   <\/div>  ')):!0&&(__.push('   <div class="layer" data-layerid="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">    '),typeof checkbox!="undefined"&&checkbox!=null&&(typeof checkbox=="function"?checkbox.call($item):checkbox)&&(__.push('<input type="checkbox" '),typeof(layer.visible?"checked":"")!="undefined"&&(layer.visible?"checked":"")!=null&&__.push($.encode(typeof(layer.visible?"checked":"")=="function"?(layer.visible?"checked":"").call($item):layer.visible?"checked":"")),__.push(' id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" />')),__.push('    <label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">     '),typeof(layer.settings.visType=="marker")!="undefined"&&layer.settings.visType=="marker"!=null&&(typeof(layer.settings.visType=="marker")=="function"?(layer.settings.visType=="marker").call($item):layer.settings.visType=="marker")&&(__.push('      <img src="'),typeof(layer.settings.marker?layer.settings.marker.url:layer.settings.imageUrl)!="undefined"&&(layer.settings.marker?layer.settings.marker.url:layer.settings.imageUrl)!=null&&__.push($.encode(typeof(layer.settings.marker?layer.settings.marker.url:layer.settings.imageUrl)=="function"?(layer.settings.marker?layer.settings.marker.url:layer.settings.imageUrl).call($item):layer.settings.marker?layer.settings.marker.url:layer.settings.imageUrl)),__.push('" alt="" />     ')),__.push("     "),typeof(layer.settings.visType=="bubble"&&!layer.settings.legendIntervals)!="undefined"&&(layer.settings.visType=="bubble"&&!layer.settings.legendIntervals)!=null&&(typeof(layer.settings.visType=="bubble"&&!layer.settings.legendIntervals)=="function"?(layer.settings.visType=="bubble"&&!layer.settings.legendIntervals).call($item):layer.settings.visType=="bubble"&&!layer.settings.legendIntervals)&&(__.push('      <span class="color-block" style="border-color: #'),typeof(layer.settings.bubble.borderColor||"eaeaea")!="undefined"&&(layer.settings.bubble.borderColor||"eaeaea")!=null&&__.push($.encode(typeof(layer.settings.bubble.borderColor||"eaeaea")=="function"?(layer.settings.bubble.borderColor||"eaeaea").call($item):layer.settings.bubble.borderColor||"eaeaea")),__.push(";background-color: #"),typeof layer.settings.bubble.color!="undefined"&&layer.settings.bubble.color!=null&&__.push($.encode(typeof layer.settings.bubble.color=="function"?layer.settings.bubble.color.call($item):layer.settings.bubble.color)),__.push(';"><\/span>     ')),__.push("     "),typeof(layer.settings.visType=="geojson")!="undefined"&&layer.settings.visType=="geojson"!=null&&(typeof(layer.settings.visType=="geojson")=="function"?(layer.settings.visType=="geojson").call($item):layer.settings.visType=="geojson")&&(__.push("      "),typeof(!layer.settings.shape||!layer.settings.shape.colors)=="undefined"||(!layer.settings.shape||!layer.settings.shape.colors)==null||(typeof(!layer.settings.shape||!layer.settings.shape.colors)=="function"?!(!layer.settings.shape||!layer.settings.shape.colors).call($item):layer.settings.shape&&layer.settings.shape.colors)||(__.push('       <span class="color-line" style="background-color: #'),typeof(layer.settings.borderColor||"999")!="undefined"&&(layer.settings.borderColor||"999")!=null&&__.push($.encode(typeof(layer.settings.borderColor||"999")=="function"?(layer.settings.borderColor||"999").call($item):layer.settings.borderColor||"999")),__.push("; height:"),typeof(layer.settings.borderWidth||1)!="undefined"&&(layer.settings.borderWidth||1)!=null&&__.push($.encode(typeof(layer.settings.borderWidth||1)=="function"?(layer.settings.borderWidth||1).call($item):layer.settings.borderWidth||1)),__.push('px"><\/span>      ')),__.push("     ")),__.push("     "),typeof(layer.settings.visType=="kml")!="undefined"&&layer.settings.visType=="kml"!=null&&(typeof(layer.settings.visType=="kml")=="function"?(layer.settings.visType=="kml").call($item):layer.settings.visType=="kml")&&__.push('      <span class="color-heatmap"><\/span>     '),__.push('     <span class="name">'),typeof layer.name!="undefined"&&layer.name!=null&&__.push($.encode(typeof layer.name=="function"?layer.name.call($item):layer.name)),__.push('<\/span>     <a href="'),typeof datasetUrl!="undefined"&&datasetUrl!=null&&__.push($.encode(typeof datasetUrl=="function"?datasetUrl.call($item):datasetUrl)),__.push('" target="_blank"><i class="fa fa-external-link" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/layer-control.htm","View data"))),__.push('"><\/i><\/a>    <\/label>    '),typeof scale!="undefined"&&scale!=null&&(typeof scale=="function"?scale.call($item):scale)&&(__.push("     "),typeof(layer.layerType=="region"&&layer.settings.legendIntervals)!="undefined"&&(layer.layerType=="region"&&layer.settings.legendIntervals)!=null&&(typeof(layer.layerType=="region"&&layer.settings.legendIntervals)=="function"?(layer.layerType=="region"&&layer.settings.legendIntervals).call($item):layer.layerType=="region"&&layer.settings.legendIntervals)?(__.push("      "),!0&&(__=__.concat($item.nest("heatmap-scale",id))),__.push("     ")):typeof(layer.settings.visType=="bubble")!="undefined"&&layer.settings.visType=="bubble"!=null&&(typeof(layer.settings.visType=="bubble")=="function"?(layer.settings.visType=="bubble").call($item):layer.settings.visType=="bubble")?(__.push("      "),typeof layer.settings.legendIntervals!="undefined"&&layer.settings.legendIntervals!=null&&(typeof layer.settings.legendIntervals=="function"?layer.settings.legendIntervals.call($item):layer.settings.legendIntervals)&&(__.push("       "),!0&&(__=__.concat($item.nest("heatmap-scale",id))),__.push("      ")),__.push("      "),!0&&(__=__.concat($item.nest("bubbles-scale",id))),__.push("     ")):typeof(layer.settings.visType=="geojson"&&layer.settings.shape&&layer.settings.shape.colors)!="undefined"&&(layer.settings.visType=="geojson"&&layer.settings.shape&&layer.settings.shape.colors)!=null&&(typeof(layer.settings.visType=="geojson"&&layer.settings.shape&&layer.settings.shape.colors)=="function"?(layer.settings.visType=="geojson"&&layer.settings.shape&&layer.settings.shape.colors).call($item):layer.settings.visType=="geojson"&&layer.settings.shape&&layer.settings.shape.colors)&&(__.push("      "),!0&&(__=__.concat($item.nest("shape-scale",id))),__.push("     ")),__.push("    ")),__.push("    <\/div>  ")),__.push("");return __});jQuery.template("legend",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="legend">  <div class="groups control">  <\/div> <\/div>');return __});jQuery.template("markers",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="markers">   '),typeof markers!="undefined"&&markers!=null&&$.each(typeof markers=="function"?markers.call($item):markers,function(n,marker){with(this)__.push('    <div class="marker'),typeof(selected===marker.id)!="undefined"&&selected===marker.id!=null&&(typeof(selected===marker.id)=="function"?(selected===marker.id).call($item):selected===marker.id)&&__.push(" selected"),__.push('" id="'),typeof marker.id!="undefined"&&marker.id!=null&&__.push($.encode(typeof marker.id=="function"?marker.id.call($item):marker.id)),__.push('">     <img src="'),typeof marker.url!="undefined"&&marker.url!=null&&__.push($.encode(typeof marker.url=="function"?marker.url.call($item):marker.url)),__.push('" title="'),typeof marker.id!="undefined"&&marker.id!=null&&__.push($.encode(typeof marker.id=="function"?marker.id.call($item):marker.id)),__.push('" alt="'),typeof marker.id!="undefined"&&marker.id!=null&&__.push($.encode(typeof marker.id=="function"?marker.id.call($item):marker.id)),__.push('" />    <\/div>   ')}),__.push('  <\/div>  <div id="add-marker"><\/div>  <div id="marker-error"><\/div>');return __});jQuery.template("polygon-colors",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="shape">    <div id="properties">    <div class="setting">     <label for="theme">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/polygon-colors.htm","Theme"))),__.push('<\/label><div id="theme"><\/div>    <\/div>    <div class="setting">     <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/polygon-colors.htm","Color"))),__.push('<\/label>     <select id="property">      '),typeof properties!="undefined"&&properties!=null&&$.each(typeof properties=="function"?properties.call($item):properties,function(key,prop){with(this)__.push("       "),typeof(prop.values.length>0&&prop.values.length<=100)!="undefined"&&(prop.values.length>0&&prop.values.length<=100)!=null&&(typeof(prop.values.length>0&&prop.values.length<=100)=="function"?(prop.values.length>0&&prop.values.length<=100).call($item):prop.values.length>0&&prop.values.length<=100)&&(__.push('        <option value="'),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push('" '),typeof(selected==key)!="undefined"&&selected==key!=null&&(typeof(selected==key)=="function"?(selected==key).call($item):selected==key)&&__.push(" selected "),__.push(">"),typeof key!="undefined"&&key!=null&&__.push($.encode(typeof key=="function"?key.call($item):key)),__.push("<\/option>       ")),__.push("      ")}),__.push('     <\/select>    <\/div>   <\/div>   <div class="shape-scale"><\/div>  <\/div>');return __});jQuery.template("ranges",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div>  <label for="theme">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/ranges.htm","Theme"))),__.push('<\/label><div id="theme"><\/div>   <span id="invert-ranges" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/ranges.htm","Invert colors"))),__.push('"><\/span> <\/div>  <div id="ranges"><\/div>');return __});jQuery.template("save-dialog",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="save-dialog" title="Save">  <div>   <label for="pg-name">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/save-dialog.htm","Name"))),__.push('<\/label><input type="text" id="pg-name" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/save-dialog.htm","New Geo Playground"))),__.push('" maxlength=255 />  <\/div>  <div>   <label for="pg-description">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/save-dialog.htm","Description"))),__.push('<\/label><textarea id="pg-description"><\/textarea>  <\/div>  <div id="save-error"><\/div> <\/div>');return __});jQuery.template("selector",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">'),typeof text!="undefined"&&text!=null&&__.push($.encode(typeof text=="function"?text.call($item):text)),__.push('<\/label>  <select id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">   '),typeof empty!="undefined"&&empty!=null&&(typeof empty=="function"?empty.call($item):empty)&&__.push("    <option><\/option>   "),__.push("   "),typeof options!="undefined"&&options!=null&&$.each(typeof options=="function"?options.call($item):options,function(n,option){with(this)__.push('    <option value="'),typeof option!="undefined"&&option!=null&&__.push($.encode(typeof option=="function"?option.call($item):option)),__.push('" '),typeof(selected==option)!="undefined"&&selected==option!=null&&(typeof(selected==option)=="function"?(selected==option).call($item):selected==option)&&__.push(" selected"),__.push(">"),typeof option!="undefined"&&option!=null&&__.push($.encode(typeof option=="function"?option.call($item):option)),__.push("<\/option>   ")}),__.push("  <\/select>");return __});jQuery.template("shape-color",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="shape-color">   '),typeof edit!="undefined"&&edit!=null&&(typeof edit=="function"?edit.call($item):edit)?(__.push('    <select data-shape="'),typeof shape!="undefined"&&shape!=null&&__.push($.encode(typeof shape=="function"?shape.call($item):shape)),__.push('"><\/select><label>'),typeof shape!="undefined"&&shape!=null&&__.push($.encode(typeof shape=="function"?shape.call($item):shape)),__.push("<\/label>   ")):!0&&(__.push('    <label><span class="color" style="background-color: #'),typeof color!="undefined"&&color!=null&&__.push($.encode(typeof color=="function"?color.call($item):color)),__.push('"><\/span>'),typeof shape!="undefined"&&shape!=null&&__.push($.encode(typeof shape=="function"?shape.call($item):shape)),__.push("<\/label>   ")),__.push("   <\/div>");return __});jQuery.template("shape-scale",function(n,$item){var $=n,__=[],$data=$item.data;with($data)__.push('<div class="shape-scale-overlay">   <div class="shape-scale-container">    <div class="shape-scale" data-layerid="'),typeof $data!="undefined"&&$data!=null&&__.push($.encode(typeof $data=="function"?$data.call($item):$data)),__.push('"><\/div>   <\/div>   <a href="#" class="show-more-shapes" data-text-more="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/shape-scale.htm","More"))),__.push('" data-text-less="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/shape-scale.htm","Less"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/shape-scale.htm","More"))),__.push("<\/a>  <\/div>");return __});jQuery.template("share-dialog",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="share-dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/share-dialog.htm","Share"))),__.push('">  <div>   <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/share-dialog.htm","Link to share"))),__.push(':<\/label>   <textarea readonly="readonly"><\/textarea>   <div>'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/geoplayground/share-dialog.htm","This workspace is private. There are several private links created allowing access to it. You can [remove|href=#|id=remove-pg-share] those links.")),__.push("<\/div>  <\/div> <\/div>");return __});jQuery.template("tooltip",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="gp-map-tooltip" style="max-height: '),typeof maxHeight!="undefined"&&maxHeight!=null&&__.push($.encode(typeof maxHeight=="function"?maxHeight.call($item):maxHeight)),__.push('px;">   <div class="view">    '),typeof edit!="undefined"&&edit!=null&&(typeof edit=="function"?edit.call($item):edit)&&(__.push('     <div class="customize-tooltip"><i class="fa fa-pencil" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Customize tooltip"))),__.push('"><\/i>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Customize"))),__.push("<\/div>    ")),__.push('        <div class="title">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/div>    <div class="gp-map-tooltip-content">     '),typeof image!="undefined"&&image!=null&&(typeof image=="function"?image.call($item):image)&&(__.push('     <div class="image">      <img src="'),typeof image!="undefined"&&image!=null&&__.push($.encode(typeof image=="function"?image.call($item):image)),__.push('" alt="'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('" />     <\/div>     ')),__.push('     <div class="columns">      '),typeof text!="undefined"&&text!=null&&__.push(typeof text=="function"?text.call($item):text),__.push('      <div class="details">       <div class="details-content">        '),typeof details!="undefined"&&details!=null&&__.push(typeof details=="function"?details.call($item):details),__.push("       <\/div>       "),typeof(details.length>0||passportTemplate)!="undefined"&&(details.length>0||passportTemplate)!=null&&(typeof(details.length>0||passportTemplate)=="function"?(details.length>0||passportTemplate).call($item):details.length>0||passportTemplate)&&(__.push('        <a href="#" class="toogle-details">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Show details"))),__.push("<\/a>       ")),__.push('      <\/div>     <\/div>    <\/div>   <\/div>   <div class="edit">    <div class="title">'),typeof titleKeys!="undefined"&&titleKeys!=null&&__.push(typeof titleKeys=="function"?titleKeys.call($item):titleKeys),__.push("<\/div>    <table>     <tbody>     "),typeof tooltip!="undefined"&&tooltip!=null&&$.each(typeof tooltip=="function"?tooltip.call($item):tooltip,function(i){with(this)__.push('      <tr class="property" data-name="'),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push('">       <td class="name-column">        <label>         <span class="name">'),typeof(tooltip[i].text?tooltip[i].text:i)!="undefined"&&(tooltip[i].text?tooltip[i].text:i)!=null&&__.push($.encode(typeof(tooltip[i].text?tooltip[i].text:i)=="function"?(tooltip[i].text?tooltip[i].text:i).call($item):tooltip[i].text?tooltip[i].text:i)),__.push('<\/span>         <input type="text" class="text column-name" value="'),typeof(tooltip[i].text?tooltip[i].text:i)!="undefined"&&(tooltip[i].text?tooltip[i].text:i)!=null&&__.push($.encode(typeof(tooltip[i].text?tooltip[i].text:i)=="function"?(tooltip[i].text?tooltip[i].text:i).call($item):tooltip[i].text?tooltip[i].text:i)),__.push('" />          <\/label>       <\/td>       <td class="edit-column">        <i class="edit-column-name fa fa-pencil" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Edit name"))),__.push('"><\/i>       <\/td>       <td>        <select>         <option value="visible" '),typeof(tooltip[i].state=="visible"?"selected":"")!="undefined"&&(tooltip[i].state=="visible"?"selected":"")!=null&&__.push($.encode(typeof(tooltip[i].state=="visible"?"selected":"")=="function"?(tooltip[i].state=="visible"?"selected":"").call($item):tooltip[i].state=="visible"?"selected":"")),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Visible"))),__.push('<\/option>         <option value="none" '),typeof(tooltip[i].state=="none"?"selected":"")!="undefined"&&(tooltip[i].state=="none"?"selected":"")!=null&&__.push($.encode(typeof(tooltip[i].state=="none"?"selected":"")=="function"?(tooltip[i].state=="none"?"selected":"").call($item):tooltip[i].state=="none"?"selected":"")),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","None"))),__.push('<\/option>         <option value="title" '),typeof(tooltip[i].state=="title"?"selected":"")!="undefined"&&(tooltip[i].state=="title"?"selected":"")!=null&&__.push($.encode(typeof(tooltip[i].state=="title"?"selected":"")=="function"?(tooltip[i].state=="title"?"selected":"").call($item):tooltip[i].state=="title"?"selected":"")),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Title"))),__.push('<\/option>         <option value="details" '),typeof(tooltip[i].state=="details"?"selected":"")!="undefined"&&(tooltip[i].state=="details"?"selected":"")!=null&&__.push($.encode(typeof(tooltip[i].state=="details"?"selected":"")=="function"?(tooltip[i].state=="details"?"selected":"").call($item):tooltip[i].state=="details"?"selected":"")),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Details"))),__.push('<\/option>         <option value="hint" '),typeof(tooltip[i].state=="hint"?"selected":"")!="undefined"&&(tooltip[i].state=="hint"?"selected":"")!=null&&__.push($.encode(typeof(tooltip[i].state=="hint"?"selected":"")=="function"?(tooltip[i].state=="hint"?"selected":"").call($item):tooltip[i].state=="hint"?"selected":"")),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Hint"))),__.push('<\/option>        <option value="image" '),typeof(tooltip[i].state=="image"?"selected":"")!="undefined"&&(tooltip[i].state=="image"?"selected":"")!=null&&__.push($.encode(typeof(tooltip[i].state=="image"?"selected":"")=="function"?(tooltip[i].state=="image"?"selected":"").call($item):tooltip[i].state=="image"?"selected":"")),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Image"))),__.push("<\/option>       <\/select>       <\/td>       <\/tr>     ")}),__.push("     <\/tbody>    <\/table>      "),typeof community!="undefined"&&community!=null&&(typeof community=="function"?community.call($item):community)&&(__.push('    <div class="passport-settings">     <label for="passport-tmpl">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Template name for passport"))),__.push('<\/label>     <input id="passport-tmpl" value="'),typeof passportTemplate!="undefined"&&passportTemplate!=null&&__.push($.encode(typeof passportTemplate=="function"?passportTemplate.call($item):passportTemplate)),__.push('" />    <\/div>    ')),__.push('    <a href="#" class="save">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/geoplayground/tooltip.htm","Save"))),__.push("<\/a>    <\/div>  <\/div>");return __});jQuery.template("checkbox-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<h2>"),typeof(title||column)!="undefined"&&(title||column)!=null&&__.push($.encode(typeof(title||column)=="function"?(title||column).call($item):title||column)),__.push("<\/h2>  "),typeof values!="undefined"&&values!=null&&$.each(typeof values=="function"?values.call($item):values,function(n,value){with(this)__.push('  <label><input type="checkbox" checked value="'),typeof value.key!="undefined"&&value.key!=null&&__.push($.encode(typeof value.key=="function"?value.key.call($item):value.key)),__.push('" />'),typeof value.text!="undefined"&&value.text!=null&&__.push($.encode(typeof value.text=="function"?value.text.call($item):value.text)),__.push("<\/label>  ")}),__.push("");return __});jQuery.template("combobox",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<h2>"),typeof(title||column)!="undefined"&&(title||column)!=null&&__.push($.encode(typeof(title||column)=="function"?(title||column).call($item):title||column)),__.push("<\/h2>  <select>   "),typeof values!="undefined"&&values!=null&&$.each(typeof values=="function"?values.call($item):values,function(n,value){with(this)__.push('   <option value="'),typeof value.key!="undefined"&&value.key!=null&&__.push($.encode(typeof value.key=="function"?value.key.call($item):value.key)),__.push('">'),typeof value.text!="undefined"&&value.text!=null&&__.push($.encode(typeof value.text=="function"?value.text.call($item):value.text)),__.push("<\/option>   ")}),__.push("  <\/select>");return __});jQuery.template("radio",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<h2>"),typeof(title||column)!="undefined"&&(title||column)!=null&&__.push($.encode(typeof(title||column)=="function"?(title||column).call($item):title||column)),__.push("<\/h2>  "),typeof values!="undefined"&&values!=null&&$.each(typeof values=="function"?values.call($item):values,function(i,value){with(this)__.push('  <label><input type="radio" value="'),typeof value.key!="undefined"&&value.key!=null&&__.push($.encode(typeof value.key=="function"?value.key.call($item):value.key)),__.push('" name="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" '),typeof(i==0)!="undefined"&&i==0!=null&&(typeof(i==0)=="function"?(i==0).call($item):i==0)&&__.push(" checked "),__.push(" />"),typeof value.text!="undefined"&&value.text!=null&&__.push($.encode(typeof value.text=="function"?value.text.call($item):value.text)),__.push("<\/label>  ")}),__.push("");return __});jQuery.template("selection",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<h2>"),typeof(title||column)!="undefined"&&(title||column)!=null&&__.push($.encode(typeof(title||column)=="function"?(title||column).call($item):title||column)),__.push('<\/h2>  <div class="memberlist autosize"><\/div>');return __});jQuery.template("slider",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<h2>"),typeof(title||column)!="undefined"&&(title||column)!=null&&__.push($.encode(typeof(title||column)=="function"?(title||column).call($item):title||column)),__.push('<\/h2>  <input type="text" class="min" value="'),typeof minValue!="undefined"&&minValue!=null&&__.push($.encode(typeof minValue=="function"?minValue.call($item):minValue)),__.push('" />  <input type="text" class="max" value="'),typeof maxValue!="undefined"&&maxValue!=null&&__.push($.encode(typeof maxValue=="function"?maxValue.call($item):maxValue)),__.push('" />  <div class="slider"><\/div>');return __})