let p = new P(<plainOption>).use(<Factory>);;
let map = p.Map(<MapOption>);
let marker = p.Marker(<MarkerOption>);
-
P.Map(container: String | HTMLElement, options: MapOption)
-
P.Marker(MarkerOption)
-
P.Polyline(PolylineOption)
-
P.Icon(IconOption)
-
P.Popup(PopupOption)
-
P.Point(pointOption)
- map.setZoom();
- map.getZoom();
- map.getMaxZoom(); [optional]
- map.getMinZoom(); [optional]
- map.open(popup | label); // open layer
- map.close();
- map.removeLayer();
- map.setCenter([lat, lng]);
- map.fitView()
- map.addLayer([layer,])
- map.clearLayers()
- layer.getMap() return
- layer.getOriginal() return
- marker.eventList // ?
- marker.setLatLng([lat, lng])
- marker.getLatLng()
- marker.setIcon()
- marker.on(, )
- path.setPath()
- path.getPath()
- path.getBounds()
- polyline.eventList ? 是否需要
- popup.setContent()
- popup.getContent() return String|HTMLElement
- P.MAP_TYPE
Plain.use(Factory)