-
Notifications
You must be signed in to change notification settings - Fork 10
Light
Welcome to the mapmyindia-map-react-native-beta wiki!
Prop | Type | Default | Required | Description |
---|---|---|---|---|
style | custom |
none |
false |
Customizable style attributes |
anchor
Whether extruded geometries are lit relative to the map or viewport.
enum
viewport
map - The position of the light source is aligned to the rotation of the map.
viewport - The position of the light source is aligned to the rotation of the viewport.
position
Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when light.anchor
is set to viewport
corresponds to the top of the viewport, or 0° when light.anchor
is set to map
corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).
array<number>
[1.15,210,30]
color
Color tint for lighting extruded geometries.
color
#ffffff
intensity
Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
number
0.5
0
1
Email us at apisupport@mapmyindia.com
Stack Overflow Ask a question under the mapmyindia-api
Support Need support? contact us!
Blog Read about the latest updates & customer stories
© Copyright 2020. CE Info Systems Pvt. Ltd. All Rights Reserved. | Terms & Conditions
- Installation Guides
- Components
- Sources
- Layers
- Widgets
- Set MapmyIndia Style
- Rest Api's