Appearance
geojsonPlugin
• Const
geojsonPlugin: Object
需要与 geojson 内方法一起使用,用于修改请求域名和数据缓存时间等
与 initGeojson 二选一即可,默认配置为 {host: 'https://gdftu-static.customer.minapp.com', cacheTime: 30 * 60}
示例
js
export function createApp() {
app.use(geojsonPlugin, {
host: 'https://gdftu-static.customer.minapp.com',
cacheTime: 30 * 60,
})
}
Param
Type declaration
Name | Type |
---|---|
install | (_ : any , options : GeojsonInitOptions ) => void |
install: (_
: any
, options
: GeojsonInitOptions
) => void