class_docstr: Create a heatmap viz
docstr: Construct a Mapviz object
  
  :param weight_property: property to determine heatmap weight. EX. "population"
  :param weight_stops: stops to determine heatmap weight.  EX. [[10, 0], [100, 1]]
  :param color_stops: stops to determine heatmap color.  EX. [[0, "red"], [0.5, "blue"], [1, "green"]]
  :param radius_stops: stops to determine heatmap radius based on zoom.  EX: [[0, 1], [12, 30]]
  :param intensity_stops: stops to determine the heatmap intensity based on zoom. EX: [[0, 0.1], [20, 5]]
docstr_tok: ["Construct","a","Mapviz","object",":","param","weight_property",":","property","to","determine","heatmap","weight",".","EX",".","``","population","''",":","param","weight_stops",":","stops","to","determine","heatmap","weight",".","EX",".","[","[","10",",","0","]",",","[","100",",","1","]","]",":","param","color_stops",":","stops","to","determine","heatmap","color",".","EX",".","[","[","0",",","``","red","''","]",",","[","0.5",",","``","blue","''","]",",","[","1",",","``","green","''","]","]",":","param","radius_stops",":","stops","to","determine","heatmap","radius","based","on","zoom",".","EX",":","[","[","0",",","1","]",",","[","12",",","30","]","]",":","param","intensity_stops",":","stops","to","determine","the","heatmap","intensity","based","on","zoom",".","EX",":","[","[","0",",","0.1","]",",","[","20",",","5","]","]"]
code: def __init__(
      self,
      data,
      weight_property=None,
      weight_stops=None,
      color_stops=None,
      radius_stops=None,
      intensity_stops=None,
      *args,
      **kwargs,
  ):
      """Construct a Mapviz object
  
      :param weight_property: property to determine heatmap weight. EX. "population"
      :param weight_stops: stops to determine heatmap weight.  EX. [[10, 0], [100, 1]]
      :param color_stops: stops to determine heatmap color.  EX. [[0, "red"], [0.5, "blue"], [1, "green"]]
      :param radius_stops: stops to determine heatmap radius based on zoom.  EX: [[0, 1], [12, 30]]
      :param intensity_stops: stops to determine the heatmap intensity based on zoom. EX: [[0, 0.1], [20, 5]]
  
      """
      super(HeatmapViz, self).__init__(data, *args, **kwargs)
  
      self.template = "heatmap"
      self.check_vector_template()
  
      self.weight_property = weight_property
      self.weight_stops = weight_stops
      if color_stops:
          # Make the first color stop in a heatmap have opacity 0 for good visual effect
          self.color_stops = [[0.00001, "rgba(0,0,0,0)"]] + color_stops
      self.radius_stops = radius_stops
      self.intensity_stops = intensity_stops
  
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 HeatmapViz object from inherited base classes: VectorMixin, MapViz with example: obj = HeatmapViz(data, weight_property, weight_stops, color_stops, radius_stops, intensity_stops)