Вход Регистрация
Файл: module-assets/admin/gmaps/lib/gmaps.map_types.js
Строк: 38
<?php
GMaps
.prototype.addMapType = function(mapTypeIdoptions) {
  if (
options.hasOwnProperty("getTileUrl") && typeof(options["getTileUrl"]) == "function") {
    
options.tileSize options.tileSize || new google.maps.Size(256256);

    var 
mapType = new google.maps.ImageMapType(options);

    
this.map.mapTypes.set(mapTypeIdmapType);
  }
  else {
    throw 
"'getTileUrl' function required.";
  }
};

GMaps.prototype.addOverlayMapType = function(options) {
  if (
options.hasOwnProperty("getTile") && typeof(options["getTile"]) == "function") {
    var 
overlayMapTypeIndex options.index;

    
delete options.index;

    
this.map.overlayMapTypes.insertAt(overlayMapTypeIndexoptions);
  }
  else {
    throw 
"'getTile' function required.";
  }
};

GMaps.prototype.removeOverlayMapType = function(overlayMapTypeIndex) {
  
this.map.overlayMapTypes.removeAt(overlayMapTypeIndex);
};
?>
Онлайн: 0
Реклама