:doc:`LocationService <../../location>` / Client / get_map_glyphs

**************
get_map_glyphs
**************



.. py:method:: LocationService.Client.get_map_glyphs(**kwargs)

  

  

  .. warning::

    

    This operation is no longer current and may be deprecated in the future. We recommend upgrading to `GetGlyphs <https://docs.aws.amazon.com/location/latest/APIReference/API_geomaps_GetGlyphs.html>`__ unless you require ``Grab`` data.

     

    
    * ``GetMapGlyphs`` is part of a previous Amazon Location Service Maps API (version 1) which has been superseded by a more intuitive, powerful, and complete API (version 2).
     
    * The version 2 ``GetGlyphs`` operation gives a better user experience and is compatible with the remainder of the V2 Maps API.
     
    * If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ``geo-maps`` or ``geo_maps``, not under ``location``.
     
    * Since ``Grab`` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using ``Grab``.
     
    * Start your version 2 API journey with the `Maps V2 API Reference <https://docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html>`__ or the `Developer Guide <https://docs.aws.amazon.com/location/latest/developerguide/maps.html>`__.
    

    

   

  Retrieves glyphs used to display labels on a map.

  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapGlyphs>`_  


  **Request Syntax**
  ::

    response = client.get_map_glyphs(
        MapName='string',
        FontStack='string',
        FontUnicodeRange='string',
        Key='string'
    )
    
  :type MapName: string
  :param MapName: **[REQUIRED]** 

    The map resource associated with the glyph ﬁle.

    

  
  :type FontStack: string
  :param FontStack: **[REQUIRED]** 

    A comma-separated list of fonts to load glyphs from in order of preference. For example, ``Noto Sans Regular, Arial Unicode``.

     

    Valid font stacks for `Esri <https://docs.aws.amazon.com/location/previous/developerguide/esri.html>`__ styles:

     

    
    * VectorEsriDarkGrayCanvas – ``Ubuntu Medium Italic`` | ``Ubuntu Medium`` | ``Ubuntu Italic`` | ``Ubuntu Regular`` | ``Ubuntu Bold``
     
    * VectorEsriLightGrayCanvas – ``Ubuntu Italic`` | ``Ubuntu Regular`` | ``Ubuntu Light`` | ``Ubuntu Bold``
     
    * VectorEsriTopographic – ``Noto Sans Italic`` | ``Noto Sans Regular`` | ``Noto Sans Bold`` | ``Noto Serif Regular`` | ``Roboto Condensed Light Italic``
     
    * VectorEsriStreets – ``Arial Regular`` | ``Arial Italic`` | ``Arial Bold``
     
    * VectorEsriNavigation – ``Arial Regular`` | ``Arial Italic`` | ``Arial Bold``
    

     

    Valid font stacks for `HERE Technologies <https://docs.aws.amazon.com/location/previous/developerguide/HERE.html>`__ styles:

     

    
    * VectorHereContrast – ``Fira GO Regular`` | ``Fira GO Bold``
     
    * VectorHereExplore, VectorHereExploreTruck, HybridHereExploreSatellite – ``Fira GO Italic`` | ``Fira GO Map`` | ``Fira GO Map Bold`` | ``Noto Sans CJK JP Bold`` | ``Noto Sans CJK JP Light`` | ``Noto Sans CJK JP Regular``
    

     

    Valid font stacks for `GrabMaps <https://docs.aws.amazon.com/location/previous/developerguide/grab.html>`__ styles:

     

    
    * VectorGrabStandardLight, VectorGrabStandardDark – ``Noto Sans Regular`` | ``Noto Sans Medium`` | ``Noto Sans Bold``
    

     

    Valid font stacks for `Open Data <https://docs.aws.amazon.com/location/previous/developerguide/open-data.html>`__ styles:

     

    
    * VectorOpenDataStandardLight, VectorOpenDataStandardDark, VectorOpenDataVisualizationLight, VectorOpenDataVisualizationDark – ``Amazon Ember Regular,Noto Sans Regular`` | ``Amazon Ember Bold,Noto Sans Bold`` | ``Amazon Ember Medium,Noto Sans Medium`` | ``Amazon Ember Regular Italic,Noto Sans Italic`` | ``Amazon Ember Condensed RC Regular,Noto Sans Regular`` | ``Amazon Ember Condensed RC Bold,Noto Sans Bold`` | ``Amazon Ember Regular,Noto Sans Regular,Noto Sans Arabic Regular`` | ``Amazon Ember Condensed RC Bold,Noto Sans Bold,Noto Sans Arabic Condensed Bold`` | ``Amazon Ember Bold,Noto Sans Bold,Noto Sans Arabic Bold`` | ``Amazon Ember Regular Italic,Noto Sans Italic,Noto Sans Arabic Regular`` | ``Amazon Ember Condensed RC Regular,Noto Sans Regular,Noto Sans Arabic Condensed Regular`` | ``Amazon Ember Medium,Noto Sans Medium,Noto Sans Arabic Medium``
    

     

    .. note::

      

      The fonts used by the Open Data map styles are combined fonts that use ``Amazon Ember`` for most glyphs but ``Noto Sans`` for glyphs unsupported by ``Amazon Ember``.

      

    

  
  :type FontUnicodeRange: string
  :param FontUnicodeRange: **[REQUIRED]** 

    A Unicode range of characters to download glyphs for. Each response will contain 256 characters. For example, 0–255 includes all characters from range ``U+0000`` to ``00FF``. Must be aligned to multiples of 256.

    

  
  :type Key: string
  :param Key: 

    The optional `API key <https://docs.aws.amazon.com/location/previous/developerguide/using-apikeys.html>`__ to authorize the request.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Blob': StreamingBody(),
          'ContentType': 'string',
          'CacheControl': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Blob** (:class:`.StreamingBody`) -- 

        The glyph, as binary blob.

        
      

      - **ContentType** *(string) --* 

        The map glyph content type. For example, ``application/octet-stream``.

        
      

      - **CacheControl** *(string) --* 

        The HTTP Cache-Control directive for the value.

        
  
  **Exceptions**
  
  *   :py:class:`LocationService.Client.exceptions.InternalServerException`

  
  *   :py:class:`LocationService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`LocationService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`LocationService.Client.exceptions.ValidationException`

  
  *   :py:class:`LocationService.Client.exceptions.ThrottlingException`

  