1 task maps only

pull/697/head
danbjoseph 2020-04-07 15:56:51 -04:00
rodzic 3d1fead5fd
commit a0893b60f6
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -3,10 +3,9 @@
// and covered by a BSD 2-Clause License
PluginsAPI.Map.addActionButton(function(options){
if (options.tiles.length > 0){
// TODO: pick the topmost layer instead
// of the first on the list, to support
// maps that display multiple tasks.
if (options.tiles.length === 1 ){
// maps that display multiple tasks don't have a share option on the page
// and so we can't set things up to edit them
var tile = options.tiles[0];
var tileUrl = window.location.protocol + "//" +