Skip to content

Instantly share code, notes, and snippets.

@liskin
Last active August 10, 2020 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liskin/24a6352dd750bc8d8b7b5160575d8d7b to your computer and use it in GitHub Desktop.
Save liskin/24a6352dd750bc8d8b7b5160575d8d7b to your computer and use it in GitHub Desktop.
Object.entries($('.mapboxgl-map')).find(([k, _]) => k.startsWith('__reactInternalInstance$'))[1].return.memoizedProps.mapboxRef((x) => (window._map = x, x))
_map.addLayer({id: "mapycz", type: "raster", source: {type: "raster", tiles: ["https://mapserver.mapy.cz/turist-m/{z}-{x}-{y}"], minzoom: 2, maxzoom: 18, tileSize: 256}}, 'global-heatmap')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment