您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a AL/FL MapRaid 2019 area overlay.
// ==UserScript== // @name WME AL/FL MapRaid 2019 Overlay // @namespace https://gf.qytechs.cn/en/users/386023-roadwarriortech850 // @version 2019.10.11.002 // @description Adds a AL/FL MapRaid 2019 area overlay. // @author RoadWarriorTech850 // @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/?.*$/ // @require https://gf.qytechs.cn/scripts/24851-wazewrap/code/WazeWrap.js // @license GNU GPLv3 // @grant none // @copyright 2019 RoadWarriorTech850, based on work by 2018 (WazeDev) MapOMatic // ==/UserScript== (function() { 'use strict'; // Enter the state abbreviation: var _stateAbbr = "AL"; // Enter the MapRaid area names and the desired fill colors, in order they appear in the original map legend: var _areas = { 'Group 1 - Mobile':{fillColor:'#FF0000'}, 'Group 2 - Destin':{fillColor:'#022220'}, 'Group 3 - Dothan':{fillColor:'#01579b'}, 'Group 4 - Montgomery':{fillColor:'#7cb342'}, 'Group 5 - Birmingham':{fillColor:'#f57c00'}, 'Group 6 - Florence':{fillColor:'#ffea00'}, 'Group 7 - Tuscaloosa':{fillColor:'#01579b'}, 'Group 8 - Huntsville':{fillColor:'#7cb342'} }; var _settingsStoreName = '_wme_' + _stateAbbr + '_mapraid'; var _settings; var _features; var _kml; var _layerName = _stateAbbr + ' MapRaid'; var _layer = null; var defaultFillOpacity = 0.3; function loadSettingsFromStorage() { _settings = $.parseJSON(localStorage.getItem(_settingsStoreName)); if(!_settings) { _settings = { layerVisible: true, hiddenAreas: [] }; } else { _settings.layerVisible = (_settings.layerVisible === true); _settings.hiddenAreas = _settings.hiddenAreas || []; } } function saveSettingsToStorage() { if (localStorage) { var settings = { layerVisible: _layer.visibility, hiddenAreas: _settings.hiddenAreas }; localStorage.setItem(_settingsStoreName, JSON.stringify(settings)); } } function GetFeaturesFromKMLString(strKML) { var format = new OpenLayers.Format.KML({ 'internalProjection': Waze.map.baseLayer.projection, 'externalProjection': new OpenLayers.Projection("EPSG:4326") }); return format.read(strKML); } function updateDistrictNameDisplay(){ $('.mapraid-region').remove(); if (_layer !== null) { var mapCenter = new OpenLayers.Geometry.Point(W.map.center.lon,W.map.center.lat); for (var i=0;i<_layer.features.length;i++){ var feature = _layer.features[i]; var color; var text = ''; var num; var url; if(feature.geometry.containsPoint(mapCenter)) { text = feature.attributes.name; color = '#00ffff'; var $div = $('<div>', {id:'mapraid', class:"mapraid-region", style:'display:inline-block;margin-left:10px;', title:'Click to toggle color on/off for this group'}) .css({color:color, cursor:"pointer"}) .click(toggleAreaFill); var $span = $('<span>').css({display:'inline-block'}); $span.text('MR Area: ' + text).appendTo($div); $('.location-info-region').parent().append($div); if (color) { break; } } } } } function toggleAreaFill() { var text = $('#mapraid span').text(); if (text) { var match = text.match(/^MR Area: (.*)/); if (match.length > 1) { var areaName = match[1]; var f = _layer.getFeaturesByAttribute('name', areaName)[0]; var hide = f.attributes.fillOpacity !== 0; f.attributes.fillOpacity = hide ? 0 : defaultFillOpacity; var idx = _settings.hiddenAreas.indexOf(areaName); if (hide) { if (idx === -1) _settings.hiddenAreas.push(areaName); } else { if (idx > -1) { _settings.hiddenAreas.splice(idx,1); } } saveSettingsToStorage(); _layer.redraw(); } } } function init() { InstallKML(); loadSettingsFromStorage(); var layerid = 'wme_' + _stateAbbr + '_mapraid'; var _features = GetFeaturesFromKMLString(_kml); var i = 0; for(var areaName in _areas) { _features[i].attributes.name = areaName; _features[i].attributes.fillColor = _areas[areaName].fillColor; _features[i].attributes.fillOpacity = _settings.hiddenAreas.indexOf(areaName) > -1 ? 0 : defaultFillOpacity; i++; } var layerStyle = new OpenLayers.StyleMap({ strokeDashstyle: 'solid', strokeColor: '#000000', strokeOpacity: 1, strokeWidth: 3, fillOpacity: '${fillOpacity}', fillColor: '${fillColor}' }); _layer = new OL.Layer.Vector(_stateAbbr + " MapRaid", { rendererOptions: { zIndexing: true }, uniqueName: layerid, shortcutKey: "S+" + 0, layerGroup: _stateAbbr + '_mapraid', zIndex: -9999, displayInLayerSwitcher: true, visibility: _settings.layerVisible, styleMap: layerStyle }); I18n.translations[I18n.locale].layers.name[layerid] = _stateAbbr + " MapRaid"; _layer.addFeatures(_features); W.map.addLayer(_layer); W.map.events.register("moveend", null, updateDistrictNameDisplay); window.addEventListener('beforeunload', function saveOnClose() { saveSettingsToStorage(); }, false); updateDistrictNameDisplay(); // Add the layer checkbox to the Layers menu. WazeWrap.Interface.AddLayerCheckbox("display", "AL/FL MapRaid 2019", _settings.layerVisible, layerToggled); } function layerToggled(visible) { _layer.setVisibility(visible); saveSettingsToStorage(); } function bootstrap() { if (W && W.loginManager && W.loginManager.isLoggedIn()) { init(); console.log(_stateAbbr + ' MR Overlay:', 'Initialized'); } else { console.log(_stateAbbr + ' MR Overlay: ', 'Bootstrap failed. Trying again...'); window.setTimeout(() => bootstrap(), 500); } } bootstrap(); function InstallKML(){ OpenLayers.Format.KML=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{kml:"http://www.opengis.net/kml/2.2",gx:"http://www.google.com/kml/ext/2.2"},kmlns:"http://earth.google.com/kml/2.0",placemarksDesc:"No description available",foldersName:"OpenLayers export",foldersDesc:"Exported on "+new Date,extractAttributes:!0,kvpAttributes:!1,extractStyles:!1,extractTracks:!1,trackAttributes:null,internalns:null,features:null,styles:null,styleBaseUrl:"",fetched:null,maxDepth:0,initialize:function(a){this.regExes= {trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g,kmlColor:/(\w{2})(\w{2})(\w{2})(\w{2})/,kmlIconPalette:/root:\/\/icons\/palette-(\d+)(\.\w+)/,straightBracket:/\$\[(.*?)\]/g};this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){this.features=[];this.styles={};this.fetched={};return this.parseData(a,{depth:0,styleBaseUrl:this.styleBaseUrl})},parseData:function(a,b){"string"==typeof a&& (a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var c=["Link","NetworkLink","Style","StyleMap","Placemark"],d=0,e=c.length;d<e;++d){var f=c[d],g=this.getElementsByTagNameNS(a,"*",f);if(0!=g.length)switch(f.toLowerCase()){case "link":case "networklink":this.parseLinks(g,b);break;case "style":this.extractStyles&&this.parseStyles(g,b);break;case "stylemap":this.extractStyles&&this.parseStyleMaps(g,b);break;case "placemark":this.parseFeatures(g,b)}}return this.features},parseLinks:function(a, b){if(b.depth>=this.maxDepth)return!1;var c=OpenLayers.Util.extend({},b);c.depth++;for(var d=0,e=a.length;d<e;d++){var f=this.parseProperty(a[d],"*","href");f&&!this.fetched[f]&&(this.fetched[f]=!0,(f=this.fetchLink(f))&&this.parseData(f,c))}},fetchLink:function(a){if(a=OpenLayers.Request.GET({url:a,async:!1}))return a.responseText},parseStyles:function(a,b){for(var c=0,d=a.length;c<d;c++){var e=this.parseStyle(a[c]);e&&(this.styles[(b.styleBaseUrl||"")+"#"+e.id]=e)}},parseKmlColor:function(a){var b= null;a&&(a=a.match(this.regExes.kmlColor))&&(b={color:"#"+a[4]+a[3]+a[2],opacity:parseInt(a[1],16)/255});return b},parseStyle:function(a){for(var b={},c=["LineStyle","PolyStyle","IconStyle","BalloonStyle","LabelStyle"],d,e,f=0,g=c.length;f<g;++f)if(d=c[f],e=this.getElementsByTagNameNS(a,"*",d)[0])switch(d.toLowerCase()){case "linestyle":d=this.parseProperty(e,"*","color");if(d=this.parseKmlColor(d))b.strokeColor=d.color,b.strokeOpacity=d.opacity;(d=this.parseProperty(e,"*","width"))&&(b.strokeWidth= d);break;case "polystyle":d=this.parseProperty(e,"*","color");if(d=this.parseKmlColor(d))b.fillOpacity=d.opacity,b.fillColor=d.color;"0"==this.parseProperty(e,"*","fill")&&(b.fillColor="none");"0"==this.parseProperty(e,"*","outline")&&(b.strokeWidth="0");break;case "iconstyle":var h=parseFloat(this.parseProperty(e,"*","scale")||1);d=32*h;var i=32*h,j=this.getElementsByTagNameNS(e,"*","Icon")[0];if(j){var k=this.parseProperty(j,"*","href");if(k){var l=this.parseProperty(j,"*","w"),m=this.parseProperty(j, "*","h");OpenLayers.String.startsWith(k,"http://maps.google.com/mapfiles/kml")&&(!l&&!m)&&(m=l=64,h/=2);l=l||m;m=m||l;l&&(d=parseInt(l)*h);m&&(i=parseInt(m)*h);if(m=k.match(this.regExes.kmlIconPalette))l=m[1],m=m[2],k=this.parseProperty(j,"*","x"),j=this.parseProperty(j,"*","y"),k="http://maps.google.com/mapfiles/kml/pal"+l+"/icon"+(8*(j?7-j/32:7)+(k?k/32:0))+m;b.graphicOpacity=1;b.externalGraphic=k}}if(e=this.getElementsByTagNameNS(e,"*","hotSpot")[0])k=parseFloat(e.getAttribute("x")),j=parseFloat(e.getAttribute("y")), l=e.getAttribute("xunits"),"pixels"==l?b.graphicXOffset=-k*h:"insetPixels"==l?b.graphicXOffset=-d+k*h:"fraction"==l&&(b.graphicXOffset=-d*k),e=e.getAttribute("yunits"),"pixels"==e?b.graphicYOffset=-i+j*h+1:"insetPixels"==e?b.graphicYOffset=-(j*h)+1:"fraction"==e&&(b.graphicYOffset=-i*(1-j)+1);b.graphicWidth=d;b.graphicHeight=i;break;case "balloonstyle":(e=OpenLayers.Util.getXmlNodeValue(e))&&(b.balloonStyle=e.replace(this.regExes.straightBracket,"${$1}"));break;case "labelstyle":if(d=this.parseProperty(e, "*","color"),d=this.parseKmlColor(d))b.fontColor=d.color,b.fontOpacity=d.opacity}!b.strokeColor&&b.fillColor&&(b.strokeColor=b.fillColor);if((a=a.getAttribute("id"))&&b)b.id=a;return b},parseStyleMaps:function(a,b){for(var c=0,d=a.length;c<d;c++)for(var e=a[c],f=this.getElementsByTagNameNS(e,"*","Pair"),e=e.getAttribute("id"),g=0,h=f.length;g<h;g++){var i=f[g],j=this.parseProperty(i,"*","key");(i=this.parseProperty(i,"*","styleUrl"))&&"normal"==j&&(this.styles[(b.styleBaseUrl||"")+"#"+e]=this.styles[(b.styleBaseUrl|| "")+i])}},parseFeatures:function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d],g=this.parseFeature.apply(this,[f]);if(g){this.extractStyles&&(g.attributes&&g.attributes.styleUrl)&&(g.style=this.getStyle(g.attributes.styleUrl,b));if(this.extractStyles){var h=this.getElementsByTagNameNS(f,"*","Style")[0];if(h&&(h=this.parseStyle(h)))g.style=OpenLayers.Util.extend(g.style,h)}if(this.extractTracks){if((f=this.getElementsByTagNameNS(f,this.namespaces.gx,"Track"))&&0<f.length)g={features:[],feature:g}, this.readNode(f[0],g),0<g.features.length&&c.push.apply(c,g.features)}else c.push(g)}else throw"Bad Placemark: "+d;}this.features=this.features.concat(c)},readers:{kml:{when:function(a,b){b.whens.push(OpenLayers.Date.parse(this.getChildValue(a)))},_trackPointAttribute:function(a,b){var c=a.nodeName.split(":").pop();b.attributes[c].push(this.getChildValue(a))}},gx:{Track:function(a,b){var c={whens:[],points:[],angles:[]};if(this.trackAttributes){var d;c.attributes={};for(var e=0,f=this.trackAttributes.length;e< f;++e)d=this.trackAttributes[e],c.attributes[d]=[],d in this.readers.kml||(this.readers.kml[d]=this.readers.kml._trackPointAttribute)}this.readChildNodes(a,c);if(c.whens.length!==c.points.length)throw Error("gx:Track with unequal number of when ("+c.whens.length+") and gx:coord ("+c.points.length+") elements.");var g=0<c.angles.length;if(g&&c.whens.length!==c.angles.length)throw Error("gx:Track with unequal number of when ("+c.whens.length+") and gx:angles ("+c.angles.length+") elements.");for(var h, i,e=0,f=c.whens.length;e<f;++e){h=b.feature.clone();h.fid=b.feature.fid||b.feature.id;i=c.points[e];h.geometry=i;"z"in i&&(h.attributes.altitude=i.z);this.internalProjection&&this.externalProjection&&h.geometry.transform(this.externalProjection,this.internalProjection);if(this.trackAttributes){i=0;for(var j=this.trackAttributes.length;i<j;++i)h.attributes[d]=c.attributes[this.trackAttributes[i]][e]}h.attributes.when=c.whens[e];h.attributes.trackId=b.feature.id;g&&(i=c.angles[e],h.attributes.heading= parseFloat(i[0]),h.attributes.tilt=parseFloat(i[1]),h.attributes.roll=parseFloat(i[2]));b.features.push(h)}},coord:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(/\s+/),d=new OpenLayers.Geometry.Point(c[0],c[1]);2<c.length&&(d.z=parseFloat(c[2]));b.points.push(d)},angles:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(/\s+/);b.angles.push(c)}}},parseFeature:function(a){for(var b=["MultiGeometry","Polygon","LineString","Point"], c,d,e,f=0,g=b.length;f<g;++f)if(c=b[f],this.internalns=a.namespaceURI?a.namespaceURI:this.kmlns,d=this.getElementsByTagNameNS(a,this.internalns,c),0<d.length){if(b=this.parseGeometry[c.toLowerCase()])e=b.apply(this,[d[0]]),this.internalProjection&&this.externalProjection&&e.transform(this.externalProjection,this.internalProjection);else throw new TypeError("Unsupported geometry type: "+c);break}var h;this.extractAttributes&&(h=this.parseAttributes(a));c=new OpenLayers.Feature.Vector(e,h);a=a.getAttribute("id")|| a.getAttribute("name");null!=a&&(c.fid=a);return c},getStyle:function(a,b){var c=OpenLayers.Util.removeTail(a),d=OpenLayers.Util.extend({},b);d.depth++;d.styleBaseUrl=c;!this.styles[a]&&!OpenLayers.String.startsWith(a,"#")&&d.depth<=this.maxDepth&&!this.fetched[c]&&(c=this.fetchLink(c))&&this.parseData(c,d);return OpenLayers.Util.extend({},this.styles[a])},parseGeometry:{point:function(a){var b=this.getElementsByTagNameNS(a,this.internalns,"coordinates"),a=[];if(0<b.length)var c=b[0].firstChild.nodeValue, c=c.replace(this.regExes.removeSpace,""),a=c.split(",");b=null;if(1<a.length)2==a.length&&(a[2]=null),b=new OpenLayers.Geometry.Point(a[0],a[1],a[2]);else throw"Bad coordinate string: "+c;return b},linestring:function(a,b){var c=this.getElementsByTagNameNS(a,this.internalns,"coordinates"),d=null;if(0<c.length){for(var c=this.getChildValue(c[0]),c=c.replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),d=c.split(this.regExes.splitSpace),e=d.length,f=Array(e),g,h,i=0;i<e;++i)if(g= d[i].split(","),h=g.length,1<h)2==g.length&&(g[2]=null),f[i]=new OpenLayers.Geometry.Point(g[0],g[1],g[2]);else throw"Bad LineString point coordinates: "+d[i];if(e)d=b?new OpenLayers.Geometry.LinearRing(f):new OpenLayers.Geometry.LineString(f);else throw"Bad LineString coordinates: "+c;}return d},polygon:function(a){var a=this.getElementsByTagNameNS(a,this.internalns,"LinearRing"),b=a.length,c=Array(b);if(0<b)for(var d=0,e=a.length;d<e;++d)if(b=this.parseGeometry.linestring.apply(this,[a[d],!0]))c[d]= b;else throw"Bad LinearRing geometry: "+d;return new OpenLayers.Geometry.Polygon(c)},multigeometry:function(a){for(var b,c=[],d=a.childNodes,e=0,f=d.length;e<f;++e)a=d[e],1==a.nodeType&&(b=this.parseGeometry[(a.prefix?a.nodeName.split(":")[1]:a.nodeName).toLowerCase()])&&c.push(b.apply(this,[a]));return new OpenLayers.Geometry.Collection(c)}},parseAttributes:function(a){var b={},c=a.getElementsByTagName("ExtendedData");c.length&&(b=this.parseExtendedData(c[0]));for(var d,e,f,a=a.childNodes,c=0,g= a.length;c<g;++c)if(d=a[c],1==d.nodeType&&(e=d.childNodes,1<=e.length&&3>=e.length)){switch(e.length){case 1:f=e[0];break;case 2:f=e[0];e=e[1];f=3==f.nodeType||4==f.nodeType?f:e;break;default:f=e[1]}if(3==f.nodeType||4==f.nodeType)if(d=d.prefix?d.nodeName.split(":")[1]:d.nodeName,f=OpenLayers.Util.getXmlNodeValue(f))f=f.replace(this.regExes.trimSpace,""),b[d]=f}return b},parseExtendedData:function(a){var b={},c,d,e,f,g=a.getElementsByTagName("Data");c=0;for(d=g.length;c<d;c++){e=g[c];f=e.getAttribute("name"); var h={},i=e.getElementsByTagName("value");i.length&&(h.value=this.getChildValue(i[0]));this.kvpAttributes?b[f]=h.value:(e=e.getElementsByTagName("displayName"),e.length&&(h.displayName=this.getChildValue(e[0])),b[f]=h)}a=a.getElementsByTagName("SimpleData");c=0;for(d=a.length;c<d;c++)h={},e=a[c],f=e.getAttribute("name"),h.value=this.getChildValue(e),this.kvpAttributes?b[f]=h.value:(h.displayName=f,b[f]=h);return b},parseProperty:function(a,b,c){var d,a=this.getElementsByTagNameNS(a,b,c);try{d=OpenLayers.Util.getXmlNodeValue(a[0])}catch(e){d= null}return d},write:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=this.createElementNS(this.kmlns,"kml"),c=this.createFolderXML(),d=0,e=a.length;d<e;++d)c.appendChild(this.createPlacemarkXML(a[d]));b.appendChild(c);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFolderXML:function(){var a=this.createElementNS(this.kmlns,"Folder");if(this.foldersName){var b=this.createElementNS(this.kmlns,"name"),c=this.createTextNode(this.foldersName);b.appendChild(c);a.appendChild(b)}this.foldersDesc&& (b=this.createElementNS(this.kmlns,"description"),c=this.createTextNode(this.foldersDesc),b.appendChild(c),a.appendChild(b));return a},createPlacemarkXML:function(a){var b=this.createElementNS(this.kmlns,"name");b.appendChild(this.createTextNode(a.style&&a.style.label?a.style.label:a.attributes.name||a.id));var c=this.createElementNS(this.kmlns,"description");c.appendChild(this.createTextNode(a.attributes.description||this.placemarksDesc));var d=this.createElementNS(this.kmlns,"Placemark");null!= a.fid&&d.setAttribute("id",a.fid);d.appendChild(b);d.appendChild(c);b=this.buildGeometryNode(a.geometry);d.appendChild(b);a.attributes&&(a=this.buildExtendedData(a.attributes))&&d.appendChild(a);return d},buildGeometryNode:function(a){var b=a.CLASS_NAME,b=this.buildGeometry[b.substring(b.lastIndexOf(".")+1).toLowerCase()],c=null;b&&(c=b.apply(this,[a]));return c},buildGeometry:{point:function(a){var b=this.createElementNS(this.kmlns,"Point");b.appendChild(this.buildCoordinatesNode(a));return b},multipoint:function(a){return this.buildGeometry.collection.apply(this, [a])},linestring:function(a){var b=this.createElementNS(this.kmlns,"LineString");b.appendChild(this.buildCoordinatesNode(a));return b},multilinestring:function(a){return this.buildGeometry.collection.apply(this,[a])},linearring:function(a){var b=this.createElementNS(this.kmlns,"LinearRing");b.appendChild(this.buildCoordinatesNode(a));return b},polygon:function(a){for(var b=this.createElementNS(this.kmlns,"Polygon"),a=a.components,c,d,e=0,f=a.length;e<f;++e)c=0==e?"outerBoundaryIs":"innerBoundaryIs", c=this.createElementNS(this.kmlns,c),d=this.buildGeometry.linearring.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},multipolygon:function(a){return this.buildGeometry.collection.apply(this,[a])},collection:function(a){for(var b=this.createElementNS(this.kmlns,"MultiGeometry"),c,d=0,e=a.components.length;d<e;++d)(c=this.buildGeometryNode.apply(this,[a.components[d]]))&&b.appendChild(c);return b}},buildCoordinatesNode:function(a){var b=this.createElementNS(this.kmlns,"coordinates"), c;if(c=a.components){for(var d=c.length,e=Array(d),f=0;f<d;++f)a=c[f],e[f]=this.buildCoordinates(a);c=e.join(" ")}else c=this.buildCoordinates(a);c=this.createTextNode(c);b.appendChild(c);return b},buildCoordinates:function(a){this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));return a.x+","+a.y},buildExtendedData:function(a){var b=this.createElementNS(this.kmlns,"ExtendedData"),c;for(c in a)if(a[c]&&"name"!=c&&"description"!= c&&"styleUrl"!=c){var d=this.createElementNS(this.kmlns,"Data");d.setAttribute("name",c);var e=this.createElementNS(this.kmlns,"value");if("object"==typeof a[c]){if(a[c].value&&e.appendChild(this.createTextNode(a[c].value)),a[c].displayName){var f=this.createElementNS(this.kmlns,"displayName");f.appendChild(this.getXMLDoc().createCDATASection(a[c].displayName));d.appendChild(f)}}else e.appendChild(this.createTextNode(a[c]));d.appendChild(e);b.appendChild(d)}return this.isSimpleContent(b)?null:b}, CLASS_NAME:"OpenLayers.Format.KML"}); _kml = `<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2"><Document><Placemark> <Style> <PolyStyle><color>4b589d0f</color></PolyStyle> <LineStyle><color>5f589d0f</color><width>5</width></LineStyle> </Style> <name>Group 1 - Mobile</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -87.1973627,30.2830619,0 -87.3051661,31.7082857,0 -88.4649104,31.7272687,0 -88.3851404,30.1763031,0 -87.8045578,30.1998109,0 -87.1973627,30.2830619,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4b000000</color></PolyStyle> <LineStyle><color>5f000000</color><width>5</width></LineStyle> </Style> <name>Group 2 - Destin</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -87.1973627,30.2830619,0 -86.6564531,30.3470012,0 -86.1702734,30.2616802,0 -85.8996028,30.1465889,0 -85.8529109,30.329301,0 -85.9545344,31.6852088,0 -87.3051661,31.7082857,0 -87.1973627,30.2830619,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4b00d6ff</color></PolyStyle> <LineStyle><color>5f00d6ff</color><width>5</width></LineStyle> </Style> <name>Group 3 - Dothan/PC</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -85.8996028,30.1465889,0 -85.5989232,30.0099391,0 -85.4643215,29.9147676,0 -85.4601496,29.8301975,0 -85.434071,29.6382198,0 -85.0701276,29.6084099,0 -84.9451633,29.6931625,0 -85.0304062,30.4075901,0 -84.9343195,30.7693668,0 -85.0454158,31.1272951,0 -85.0978101,31.2173031,0 -85.0800141,31.6409353,0 -85.9545344,31.6852088,0 -85.8529109,30.329301,0 -85.8996028,30.1465889,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4bb0279c</color></PolyStyle> <LineStyle><color>5fb0279c</color><width>5</width></LineStyle> </Style> <name>Group 4 - Montgomery</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -88.4072322,32.4405167,0 -88.4722455,31.9032884,0 -88.4649104,31.7272687,0 -87.2094377,31.7065456,0 -86.5791673,31.6950762,0 -85.9545344,31.6852088,0 -85.0800141,31.6409353,0 -85.1264399,31.7477077,0 -85.1445903,31.8464827,0 -85.0031814,32.1888451,0 -85.0032011,32.330532,0 -85.1607722,32.8013941,0 -88.361492,32.7567752,0 -88.4072322,32.4405167,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4b1427a5</color></PolyStyle> <LineStyle><color>5f1427a5</color><width>5</width></LineStyle> </Style> <name>Group 5 - Birmingham</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -86.8233137,33.8301606,0 -86.8119844,33.3026763,0 -86.710689,32.7912346,0 -85.1607722,32.8013941,0 -85.2397311,33.1362159,0 -85.2472823,33.1758731,0 -85.2583568,33.2152941,0 -85.2918799,33.4074859,0 -85.3740542,33.811053,0 -86.8233137,33.8301606,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4b0051e6</color></PolyStyle> <LineStyle><color>5f0051e6</color><width>5</width></LineStyle> </Style> <name>Group 6 - Florence</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -88.2331078,33.8315763,0 -86.8233137,33.8301606,0 -86.8279795,34.9930997,0 -88.2015217,35.0078151,0 -88.181266,34.9728456,0 -88.1476204,34.9179685,0 -88.1177513,34.9010759,0 -88.096122,34.8931914,0 -88.0933754,34.8529128,0 -88.0902855,34.8351613,0 -88.1084816,34.808668,0 -88.2331078,33.8315763,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4b2bb4af</color></PolyStyle> <LineStyle><color>5f2bb4af</color><width>5</width></LineStyle> </Style> <name>Group 7 - Tuscaloosa</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -88.2331078,33.8315763,0 -88.361492,32.7567752,0 -86.710689,32.7912346,0 -86.8119844,33.3026763,0 -86.8233137,33.8301606,0 -88.2331078,33.8315763,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> <Placemark> <Style> <PolyStyle><color>4b4f0e88</color></PolyStyle> <LineStyle><color>5f4f0e88</color><width>5</width></LineStyle> </Style> <name>Group 8 - Huntsville</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> -86.8279795,34.9930997,0 -86.8233137,33.8301606,0 -85.3740542,33.811053,0 -85.6123033,34.9667111,0 -86.8279795,34.9930997,0 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> </Document></kml>`; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址