@quartic/bokehjs
Version:
Interactive, novel data visualization
20 lines (14 loc) • 607 B
text/coffeescript
import {MercatorTileSource} from './mercator_tile_source'
import * as p from "core/properties"
export class BBoxTileSource extends MercatorTileSource
type: 'BBoxTileSource'
{
use_latlon : [ p.Bool, false ]
}
get_image_url: (x, y, z) ->
image_url =
if
[xmin, ymin, xmax, ymax] =
else
[xmin, ymin, xmax, ymax] =
return image_url.replace("{XMIN}", xmin).replace("{YMIN}", ymin).replace("{XMAX}", xmax).replace("{YMAX}", ymax)