Source Code:
Get map type
Result:
W3Schools.com
- Try it yourself