Theme
Change the map theme
setTheme
mapInstance.setTheme(theme);
Parameters
Parameter (Requied)
Description
Remark
theme
Set map colors and theme types are basic
light1 // Gray theme
light2 // Street theme
light3 // Background Dark, Road Color
light4 // Dark theme
satellite // Satellite theme
String
Returns
Parameter
Description
Remark
Example
let LatLng = {lat: 37.482890, lng: 126.896086}
let mapInstance = new mogosmap.maps.Map(
document.getElementById("app"),
{
zoom: 14,
center: LatLng,
maxZoom: 20,
minZoom: 2,
key: 'YOUR_API_KEY'
// theme
theme: 'light1' Default basic
}
)
getTheme
// Some code
Parameters
Parameter (Required)
Description
Remark
Returns
Parameter
Description
Remark
Example
// Some code
The MOGOS Maps API requires an API Key, which can be obtained from the MOGOS Console website or contact [email protected].
Last updated