将图块的坐标仅放置在地图的极端(API v3 Google Maps)

时间:2017-03-02 00:38:50

标签: google-maps google-maps-api-3 coordinates

我想将瓷砖的坐标仅放在地图的极端,现在我在所有地图中都有坐标。

enter image description here

这是我的代码:

 CoordMapType.prototype.getTile = function(coord, zoom, ownerDocument) {

      var div = ownerDocument.createElement('div');

      div.innerHTML = '<p style="color: #000000;background: rgba(255,255,255, 0.85); width:22%; font-weight: bold;">'+coord+'</p>';
        div.style.color ='#FFFFFF';
      div.style.width = this.tileSize.width + 'px';
      div.style.height = this.tileSize.height + 'px';
      div.style.fontSize = '10px';
      div.style.borderStyle = 'solid';
      div.style.borderWidth = '1px';
      div.style.borderColor = '#AAAAAA';
      return div;
    };

0 个答案:

没有答案