get_map_glyphs
¶
get_map_glyphs(
map_name: ResourceName,
font_stack: str,
font_unicode_range: str,
*,
config_overrides: Optional[LocationClientConfig] = None,
key: Optional[ApiKey] = None,
) -> GetMapGlyphsResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to The version 2 If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under Since Start your version 2 API journey with the Maps V2 API Reference or the Developer Guide.GetGlyphs 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).GetGlyphs operation gives a better user experience and is compatible with the remainder of the V2 Maps API.geo-maps or geo_maps, not under location.Grab is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using Grab.
Retrieves glyphs used to display labels on a map.
Parameters:
-
map_name(ResourceName) –The map resource associated with the glyph file.
-
font_stack(str) –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 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 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 styles:
-
VectorGrabStandardLight, VectorGrabStandardDark –
Noto Sans Regular|Noto Sans Medium|Noto Sans Bold
Valid font stacks for Open Data 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
The fonts used by the Open Data map styles are combined fonts that use
Amazon Emberfor most glyphs butNoto Sansfor glyphs unsupported byAmazon Ember. -
-
font_unicode_range(str) –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+0000to00FF. Must be aligned to multiples of 256. -
key(Optional[ApiKey], default:None) –The optional API key to authorize the request.
Raises:
-
AccessDeniedException–The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
-
InternalServerException–The request has failed to process because of an unknown server error, exception, or failure.
-
ResourceNotFoundException–The resource that you've entered was not found in your AWS account.
-
ThrottlingException–The request was denied because of request throttling.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_location/_services/location.py
2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 | |