docstr: Generate stops array for use with match expression in mapbox template
docstr_tok: ["Generate","stops","array","for","use","with","match","expression","in","mapbox","template"]
code: def generate_vector_numeric_map(self, numeric_property):
      """Generate stops array for use with match expression in mapbox template"""
      vector_stops = []
  
      function_type = getattr(
          self, "{}_function_type".format(numeric_property)
      )
      lookup_property = getattr(
          self, "{}_property".format(numeric_property)
      )
      numeric_stops = getattr(self, "{}_stops".format(numeric_property))
      default = getattr(self, "{}_default".format(numeric_property))
  
      if function_type == "match":
          match_width = numeric_stops
  
      # if join data specified as filename or URL, parse JSON to list of Python dicts
      if type(self.data) == str:
          self.data = geojson_to_dict_list(self.data)
  
      for row in self.data:
          # map value to JSON feature using the numeric property
          value = numeric_map(
              row[lookup_property], numeric_stops, default
          )
  
          # link to vector feature using data_join_property (from JSON object)
          vector_stops.append([row[self.data_join_property], value])
  
      return vector_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 2 for calling the VectorMixin obj's underlying member method code with example usage: obj.generate_vector_numeric_map(numeric_property) and returns: vector_stops