Document Maps JavaScript API Reference Manual General Library Browser

Browser

AMap.Browser

Contains some information about the current browser

Property description

Attribute

Type

Description

us

string

Current browser userAgent

mobile

boolean

Is it a mobile device

plat

string

Platform type, such as: 'windows', 'mac', 'ios', 'android', 'other'

windows

boolean

Is it a Windows device

ios

boolean

Is it an iOS device

iPad

boolean

Is it an iPad

Phone

boolean

Is it an iPhone

android

boolean

Is it an Android device

android23

boolean

Is it Android version 4 or below

chrome

boolean

Is it Chrome browser

firefox

boolean

Is it Firefox browser

safari

boolean

Is it Safari browser

wechat

boolean

Is it WeChat

uc

boolean

Is it UC browser

qq

boolean

Is it QQ or QQ browser

ie

boolean

Is it IE

ie6

boolean

Is it IE6

ie7

boolean

Is it IE7

ie8

boolean

Is it IE8

ie9

boolean

Is it IE9

ie10

boolean

Is it IE10

ie11

boolean

Is it IE11

ielt9

boolean

Is it below IE9

edge

boolean

Is it Edge browser

isLocalStorage

boolean

Does it support LocalStorage

isGeolocation

boolean

Does it support Geolocation

mobileWebkit

boolean

Is it a Webkit mobile browser

mobileWebkit3d

boolean

Does it support Css3D Webkit mobile browser

retina

boolean

Is it a high-definition screen, devicePixelRatio>1

touch

boolean

Is it a touch screen

msPointer

boolean

Is it an msPointer device

pointer

boolean

Is it a pointer device

webkit

boolean

Is it a Webkit browser

webkit3d

boolean

Does it support Css3D Webkit browser

gecko3d

boolean

Does the Gecko browser support Css3D

ie3d

boolean

Does the IE browser support Css3D

any3d

boolean

Does the browser support Css3D

opera3d

boolean

Does the Opera browser support Css3D

isCanvas

boolean

Does it support canvas

isSvg

boolean

Does it support svg

isVML

boolean

Does it support vml

isWorker

boolean

Does it support WebWorker

isWebsocket

boolean

Does it support WebSocket

isWebGL

boolean

Does it support webgl