MCPcopy
hub / github.com/google/earthengine-api / createTile

Method createTile

javascript/src/layers/binaryoverlay.js:42–58  ·  view source on GitHub ↗

@override

(coord, zoom, ownerDocument, uniqueId)

Source from the content-addressed store, hash-verified

40
41 /** @override */
42 createTile(coord, zoom, ownerDocument, uniqueId) {
43 var tile =
44 new earthengine_api.javascript.layers.binaryoverlay
45 .BinaryTile(coord, zoom, ownerDocument, uniqueId);
46
47 // Store the binary buffer and div in Maps when the tile loads.
48 this.handler.listen(
49 tile, ee.layers.AbstractTile.EventType.STATUS_CHANGED, function() {
50 if (tile.getStatus() == ee.layers.AbstractTile.Status.LOADED) {
51 var sourceData = tile.buffer_;
52 this.buffersByCoord_.set(coord, new Float32Array(sourceData));
53 this.divsByCoord_.set(coord, tile.div);
54 }
55 });
56
57 return tile;
58 }
59
60 /**
61 * @return {goog.structs.Map<!google.maps.Point, !Float32Array>} The binary

Callers

nothing calls this directly

Calls 2

getStatusMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected