get_style_descriptor
¶
get_style_descriptor(
style: MapStyle,
*,
config_overrides: Optional[GeoMapsClientConfig] = None,
color_scheme: Optional[ColorScheme] = None,
political_view: Optional[CountryCode] = None,
terrain: Optional[Terrain] = None,
contour_density: Optional[ContourDensity] = None,
traffic: Optional[Traffic] = None,
travel_modes: Optional[TravelModeList] = None,
buildings: Optional[Buildings] = None,
poi_density: Optional[PoiDensity] = None,
poi_categories: Optional[PoiCategoryList] = None,
key: Optional[ApiKey] = None,
) -> GetStyleDescriptorResponse
GetStyleDescriptor returns information about the style.
For more information, see Style dynamic maps in the Amazon Location Service Developer Guide.
Parameters:
-
style(MapStyle) –Style specifies the desired map style. For GrabMaps customers,
ap-southeast-1andap-southeast-5regions support only theStandardandMonochromevalues. -
color_scheme(Optional[ColorScheme], default:None) –Sets the color tone for the map, such as dark and light.
Example:
LightDefault value:
LightValid values for ColorScheme are case sensitive.
-
political_view(Optional[CountryCode], default:None) –Specifies the political view using ISO 3166-2 or ISO 3166-3 country code format. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.The following political views are currently supported:
-
ARG: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands -
EGY: Egypt's view on Bir Tawil -
IND: India's view on Gilgit-Baltistan -
KEN: Kenya's view on the Ilemi Triangle -
MAR: Morocco's view on Western Sahara -
RUS: Russia's view on Crimea -
SDN: Sudan's view on the Halaib Triangle -
SRB: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands -
SUR: Suriname's view on the Courantyne Headwaters and Lawa Headwaters -
SYR: Syria's view on the Golan Heights -
TUR: Turkey's view on Cyprus and Northern Cyprus -
TZA: Tanzania's view on Lake Malawi -
URY: Uruguay's view on Rincon de Artigas -
VNM: Vietnam's view on the Paracel Islands and Spratly Islands
-
-
terrain(Optional[Terrain], default:None) –Adjusts how physical terrain details are rendered on the map. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.The following terrain styles are currently supported:
-
Hillshade: Displays the physical terrain details through shading and highlighting of elevation change and geographic features. -
Terrain3D: Displays physical terrain details and elevations as a three-dimensional model.
Hillshadeis valid only for theStandardandMonochromemap styles. -
-
contour_density(Optional[ContourDensity], default:None) –Displays the shape and steepness of terrain features using elevation lines. The density value controls how densely the available contour line information is rendered on the map. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.This parameter is valid for all map styles except
Satellite. -
traffic(Optional[Traffic], default:None) –Displays real-time traffic information overlay on map, such as incident events and flow events. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.This parameter is valid for all map styles except
Satellite. -
travel_modes(Optional[TravelModeList], default:None) –Renders additional map information relevant to selected travel modes. Information for multiple travel modes can be displayed simultaneously, although this increases the overall information density rendered on the map. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.This parameter is valid for all map styles except
Satellite. -
buildings(Optional[Buildings], default:None) –Adjusts how building details are rendered on the map.
The following building styles are currently supported:
-
Buildings3D: Displays buildings as three-dimensional extrusions on the map.
Buildings3Dis valid only for theStandardandMonochromemap styles. -
-
poi_density(Optional[PoiDensity], default:None) –Controls how densely points of interest are rendered on the map. The density value controls the zoom level at which each category of points of interest appears, and how quickly less prominent points of interest are revealed as you zoom in. Denser values display more points of interest at lower zoom levels.
Use
Offto hide all points of interest. When you omit this parameter, the map renders atDefaultdensity.The difference between density values is most noticeable at mid-range zoom levels. At high zoom levels, all density values converge on displaying every available point of interest.
This parameter is valid only for the
StandardandHybridmap styles. Inap-southeast-1andap-southeast-5regions for GrabMaps customers, this parameter is valid only for theStandardmap style. -
poi_categories(Optional[PoiCategoryList], default:None) –Renders only the specified categories of points of interest. When you omit this parameter, the map renders all categories.
The following categories are currently supported:
-
FoodAndDrink -
Entertainment -
SightsAndMuseums -
Transportation -
Accommodations -
LeisureAndOutdoor -
Shopping -
BusinessAndServices -
FacilitiesAndBuildings
Specify each category as a separate
poi-categoriesquery parameter. Duplicate values are rejected.This parameter has no effect when
poi-densityis set toOff, which hides all points of interest regardless of category.This parameter is valid only for the
StandardandHybridmap styles. Inap-southeast-1andap-southeast-5regions for GrabMaps customers, this parameter is valid only for theStandardmap style. -
-
key(Optional[ApiKey], default:None) –Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_geo_maps/_services/geo_maps.py
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 | |