芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/blog/wp-content/plugins/xml-google-maps/xmlgooglemaps_googleMapsAPI.js
function BannerButtonControl() { } // Zum Erstellen einer "Unterklasse" des GControl wird das Prototypobjekt auf eine Instanz des GControl-Objekts festgelegt BannerButtonControl.prototype = new GControl(); // Erstellt ein DIV fr jede der Schaltflchen und platziert sie in einem Container // DIV, das als Bedienelement zurckgegeben wird. Das Bedienelement wird zum Kartencontainer hinzugefgt und gibt das Element fr die Kartenklasse zurck, damit es ordnungsgem positioniert wird. BannerButtonControl.prototype.initialize = function(map) { var container = document.createElement("div"); var atag = document.createElement("a"); atag.href = "http://www.matusz.ch/blog/projekte/xml-google-maps-wordpress-plugin/"; atag.target = "_blank"; var imgtag = document.createElement("img"); imgtag.src= "images/pluginbanner_left.png"; imgtag.alt = "Visit the plugin page!"; imgtag.title = imgtag.alt; this.setButtonStyle_(imgtag); container.appendChild(atag); atag.appendChild(imgtag); map.getContainer().appendChild(container); return container; } // Standardmig wird das Bedienelement in der oberen linken Ecke der Karte mit 7 Pixeln Abstand zum Kartenrand angezeigt. BannerButtonControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(0, 38)); } // Legt das korrekte CSS fr das angegebene Schaltflchenelement fest. BannerButtonControl.prototype.setButtonStyle_ = function(button) { button.style.border = "0px"; } function FullScreenButtonControl() { } // Zum Erstellen einer "Unterklasse" des GControl wird das Prototypobjekt auf eine Instanz des GControl-Objekts festgelegt FullScreenButtonControl.prototype = new GControl(); // Erstellt ein DIV fr jede der Schaltflchen und platziert sie in einem Container // DIV, das als Bedienelement zurckgegeben wird. Das Bedienelement wird zum Kartencontainer hinzugefgt und gibt das Element fr die Kartenklasse zurck, damit es ordnungsgem positioniert wird. FullScreenButtonControl.prototype.initialize = function(map) { var container = document.createElement("div"); var atag = document.createElement("a"); atag.href = document.URL + "&fullscreen=1"; atag.target = "_blank"; var imgtag = document.createElement("img"); imgtag.src = "icons/fullscreen.png"; imgtag.alt = "Fullscreen"; imgtag.title = imgtag.alt; this.setButtonStyle_(imgtag); container.appendChild(atag); atag.appendChild(imgtag); map.getContainer().appendChild(container); return container; } // Standardmig wird das Bedienelement in der oberen linken Ecke der Karte mit 7 Pixeln Abstand zum Kartenrand angezeigt. FullScreenButtonControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(2, 196)); } // Legt das korrekte CSS fr das angegebene Schaltflchenelement fest. FullScreenButtonControl.prototype.setButtonStyle_ = function(button) { button.style.border = "0px"; } //Open Street Map Type / Open Cycle Map Street Type var osmCopyright = new GCopyright(1, new GLatLngBounds(new GLatLng(-90,-180), new GLatLng(90,180)), 0, '(
CC-BY-SA
)') var osmCopyrightCollection = new GCopyrightCollection('©
OpenStreetMap
Contributors'); osmCopyrightCollection.addCopyright(osmCopyright); var osmTilelayers_mapnik = new Array(); osmTilelayers_mapnik[0] = new GTileLayer(osmCopyrightCollection, 0, 18); osmTilelayers_mapnik[0].getTileUrl = osmGetTileUrl_Mapnik; osmTilelayers_mapnik[0].isPng = function () { return true; }; osmTilelayers_mapnik[0].getOpacity = function () { return 1.0; }; var USER_MAP_OSM = new GMapType(osmTilelayers_mapnik, new GMercatorProjection(19), "OSM", { urlArg: 'mapnik', linkColor: '#000000' }); function osmGetTileUrl_Mapnik(a, z) {return "http://tile.openstreetmap.org/" + z + "/" + a.x + "/" + a.y + ".png";} var osmTilelayers_cycle = new Array(); osmTilelayers_cycle[0] = new GTileLayer(osmCopyrightCollection, 7, 18); osmTilelayers_cycle[0].getTileUrl = osmGetTileUrl_Cycle; osmTilelayers_cycle[0].isPng = function () { return true; }; osmTilelayers_cycle[0].getOpacity = function () { return 1.0; }; var USER_MAP_OCM = new GMapType(osmTilelayers_cycle, new GMercatorProjection(19), "Cycle", { urlArg: 'cycle', linkColor: '#000000' }); function osmGetTileUrl_Cycle(a, z) {return "http://tile.opencyclemap.org/cycle/" + z + "/" + a.x + "/" + a.y + ".png";}