MapContext.showsCompass

Set the visibility of the compass.

  • 1: visible.
  • 0: invisible.

Parameter

The parameter is in object type and has the following property:

PropertyType

Required

Description
isShowsCompassIntYes

An indicator of whether the compass is visible.

Sample code

copy
this.mapCtx = my.createMapContext('map');
this.mapCtx.showsCompass({isShowsCompass:1});