Class: AWSCDK::Location::CfnMap::MapConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
location/cfn_map.rb

Overview

Specifies the map tile style selected from an available provider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(style:, custom_layers: nil, political_view: nil) ⇒ MapConfigurationProperty

Returns a new instance of MapConfigurationProperty.

Parameters:

  • style (String)

    Specifies the map style selected from an available data provider.

  • custom_layers (Array<String>, nil) (defaults to: nil)

    Specifies the custom layers for the style.

  • political_view (String, nil) (defaults to: nil)

    Specifies the map political view selected from an available data provider.



636
637
638
639
640
641
642
643
# File 'location/cfn_map.rb', line 636

def initialize(style:, custom_layers: nil, political_view: nil)
  @style = style
  Jsii::Type.check_type(@style, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "style")
  @custom_layers = custom_layers
  Jsii::Type.check_type(@custom_layers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "customLayers") unless @custom_layers.nil?
  @political_view = political_view
  Jsii::Type.check_type(@political_view, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "politicalView") unless @political_view.nil?
end

Instance Attribute Details

#custom_layersArray<String>? (readonly)

Specifies the custom layers for the style.

Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as the POI layer for the VectorEsriNavigation style.

Currenlty only VectorEsriNavigation supports CustomLayers. For more information, see Custom Layers .



694
695
696
# File 'location/cfn_map.rb', line 694

def custom_layers
  @custom_layers
end

#political_viewString? (readonly)

Specifies the map political view selected from an available data provider.



699
700
701
# File 'location/cfn_map.rb', line 699

def political_view
  @political_view
end

#styleString (readonly)

Specifies the map style selected from an available data provider.

Valid Esri map styles :

  • VectorEsriDarkGrayCanvas – The Esri Dark Gray Canvas map style. A vector basemap with a dark gray, neutral background with minimal colors, labels, and features that's designed to draw attention to your thematic content.
  • RasterEsriImagery – The Esri Imagery map style. A raster basemap that provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide.
  • VectorEsriLightGrayCanvas – The Esri Light Gray Canvas map style, which provides a detailed vector basemap with a light gray, neutral background style with minimal colors, labels, and features that's designed to draw attention to your thematic content.
  • VectorEsriTopographic – The Esri Light map style, which provides a detailed vector basemap with a classic Esri map style.
  • VectorEsriStreets – The Esri Street Map style, which provides a detailed vector basemap for the world symbolized with a classic Esri street map style. The vector tile layer is similar in content and style to the World Street Map raster map.
  • VectorEsriNavigation – The Esri Navigation map style, which provides a detailed basemap for the world symbolized with a custom navigation map style that's designed for use during the day in mobile devices.

Valid HERE Technologies map styles :

  • VectorHereContrast – The HERE Contrast (Berlin) map style is a high contrast detailed base map of the world that blends 3D and 2D rendering.

The VectorHereContrast style has been renamed from VectorHereBerlin . VectorHereBerlin has been deprecated, but will continue to work in applications that use it.

  • VectorHereExplore – A default HERE map style containing a neutral, global map and its features including roads, buildings, landmarks, and water features. It also now includes a fully designed map of Japan.
  • VectorHereExploreTruck – A global map containing truck restrictions and attributes (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE Explore to support use cases within transport and logistics.
  • RasterHereExploreSatellite – A global map containing high resolution satellite imagery.
  • HybridHereExploreSatellite – A global map displaying the road network, street names, and city labels over satellite imagery. This style will automatically retrieve both raster and vector tiles, and your charges will be based on total tiles retrieved.

Hybrid styles use both vector and raster tiles when rendering the map that you see. This means that more tiles are retrieved than when using either vector or raster tiles alone. Your charges will include all tiles retrieved.

Valid GrabMaps map styles :

  • VectorGrabStandardLight – The Grab Standard Light map style provides a basemap with detailed land use coloring, area names, roads, landmarks, and points of interest covering Southeast Asia.
  • VectorGrabStandardDark – The Grab Standard Dark map style provides a dark variation of the standard basemap covering Southeast Asia.

Grab provides maps only for countries in Southeast Asia, and is only available in the Asia Pacific (Singapore) Region ( ap-southeast-1 ). For more information, see GrabMaps countries and area covered .

Valid Open Data map styles :

  • VectorOpenDataStandardLight – The Open Data Standard Light map style provides a detailed basemap for the world suitable for website and mobile application use. The map includes highways major roads, minor roads, railways, water features, cities, parks, landmarks, building footprints, and administrative boundaries.
  • VectorOpenDataStandardDark – Open Data Standard Dark is a dark-themed map style that provides a detailed basemap for the world suitable for website and mobile application use. The map includes highways major roads, minor roads, railways, water features, cities, parks, landmarks, building footprints, and administrative boundaries.
  • VectorOpenDataVisualizationLight – The Open Data Visualization Light map style is a light-themed style with muted colors and fewer features that aids in understanding overlaid data.
  • VectorOpenDataVisualizationDark – The Open Data Visualization Dark map style is a dark-themed style with muted colors and fewer features that aids in understanding overlaid data.


685
686
687
# File 'location/cfn_map.rb', line 685

def style
  @style
end

Class Method Details

.jsii_propertiesObject



701
702
703
704
705
706
707
# File 'location/cfn_map.rb', line 701

def self.jsii_properties
  {
    :style => "style",
    :custom_layers => "customLayers",
    :political_view => "politicalView",
  }
end

Instance Method Details

#to_jsiiObject



709
710
711
712
713
714
715
716
717
# File 'location/cfn_map.rb', line 709

def to_jsii
  result = {}
  result.merge!({
    "style" => @style,
    "customLayers" => @custom_layers,
    "politicalView" => @political_view,
  })
  result.compact
end