# MapContext.addMarkers(Object object)
Start from base library version 2.13.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Add to marker。
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
markers | Array | yes | Same afferent map Component marker attribute | |
clear | boolean | false | no | Do you want to clear all the maps first? marker |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |