class_docstr: Create a rastertiles map
docstr: Construct a Mapviz object
  
  :param tiles_url: property to determine tiles url endpoint
  :param tiles_size: property to determine displayed tiles size
  :param tiles_bounds: property to determine the tiles endpoint bounds
  :param tiles_minzoom: property to determine the tiles endpoint min zoom
  :param tiles_max: property to determine the tiles endpoint max zoom
  :param legend: default setting is to hide heatmap legend
docstr_tok: ["Construct","a","Mapviz","object",":","param","tiles_url",":","property","to","determine","tiles","url","endpoint",":","param","tiles_size",":","property","to","determine","displayed","tiles","size",":","param","tiles_bounds",":","property","to","determine","the","tiles","endpoint","bounds",":","param","tiles_minzoom",":","property","to","determine","the","tiles","endpoint","min","zoom",":","param","tiles_max",":","property","to","determine","the","tiles","endpoint","max","zoom",":","param","legend",":","default","setting","is","to","hide","heatmap","legend"]
code: def __init__(
      self,
      tiles_url,
      tiles_size=256,
      tiles_bounds=None,
      tiles_minzoom=0,
      tiles_maxzoom=22,
      legend=False,
      *args,
      **kwargs,
  ):
      """Construct a Mapviz object
  
      :param tiles_url: property to determine tiles url endpoint
      :param tiles_size: property to determine displayed tiles size
      :param tiles_bounds: property to determine the tiles endpoint bounds
      :param tiles_minzoom: property to determine the tiles endpoint min zoom
      :param tiles_max: property to determine the tiles endpoint max zoom
      :param legend: default setting is to hide heatmap legend
  
      """
      super(RasterTilesViz, self).__init__(None, *args, **kwargs)
  
      self.template = "raster"
      self.tiles_url = tiles_url
      self.tiles_size = tiles_size
      self.tiles_bounds = tiles_bounds
      self.tiles_minzoom = tiles_minzoom
      self.tiles_maxzoom = tiles_maxzoom
  
imports: import codecs
  import json
  import os
  from IPython.core.display import HTML, display
  import numpy
  import requests
  from mapboxgl.errors import TokenError, LegendError
  from mapboxgl.utils import color_map, numeric_map, img_encode, geojson_to_dict_list
  from mapboxgl import templates
label_desc: Use image node_id 1 to create a new RasterTilesViz object from inherited base classes: MapViz with example: obj = RasterTilesViz(tiles_url, tiles_size, tiles_bounds, tiles_minzoom, tiles_maxzoom, legend)