Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function addQualityTileOverlay() {
  2.           var factory = OverlayFactory();
  3.           if(!map.qualityTileOverlay){
  4.               map.qualityTileOverlay = new factory.CanvasTileLayerOverlay(map, "mylayer");
  5.               map.addOverlay(map.qualityTileOverlay);
  6.           }
  7.         }
  8.  
  9. function removeQualityTileOverlay() {
  10.           if(map.qualityTileOverlay){
  11.               map. removeOverlay(map.qualityTileOverlay);
  12.               delete map.qualityTileOverlay;
  13.           }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement