$ npm i --save bmaplib.texticonoverlay
<script src="//unpkg.com/bmaplib.texticonoverlay"></script>
import TextIconOverlay from 'bmaplib.texticonoverlay'
// You should use this lib after BaiduMap loaded. For Example:
loadBaiduMap.then(() => {
new TextIconOverlay()
})
<script src="//api.map.baidu.com/api?v=2.0"></script>
<script src="//unpkg.com/bmaplib.texticonoverlay"></script>
<script>
new BMapLib.TextIconOverlay()
</script>