public async Task <TileLayer> TileLayer(TileLayer tileLayer) { await Evaluate($"{tileLayer.JsName} = L.{tileLayer}"); return(tileLayer); }
public async Task <Map> RemoveLayerJsd(TileLayer layer) { await RemoveLayerJs(layer).Run(); return(this); }
public async Task <TileLayer> TileLayer(string jsName, string url, TileLayerOptions options = null) { var tileLayer = new TileLayer(jsName, Browser, url, options ?? TileLayerOptions.Default); return(await TileLayer(tileLayer)); }
public JsTask RemoveLayerJs(TileLayer layer) { var js = $"{JsName}.removeLayer({layer.JsName});"; return(new JsTask(js, () => Browser.EvaluateScriptAsync(js))); }