在Chrome开发工具中,我可以访问以下变量:
myLayer
e {options: Object, _layers: Object, _initHooksCalled: true, _leaflet_events: Object, _leaflet_id: 29…}
_geojson: Object
_initHooksCalled: true
_layers: Object
30: e
_icon: img.leaflet-marker-icon.leaflet-zoom-animated.leaflet-clickable
_initHooksCalled: true
_latlng: s.LatLng
_leaflet_events: Object
_leaflet_id: 30
_map: e
_popup: e
_animated: true
_content: "Location:Rotary Club of Dartmouth"
_initHooksCalled: true
_isOpen: false
_source: e
options: Object
__proto__: i
_popupHandlersAdded: true
_shadow: null
_zIndex: 267
dragging: e
feature: Object
options: Object
__proto__: i
34: e
__proto__: Object
_leaflet_events: Object
_leaflet_id: 29
_map: e
options: Object
__proto__: i
我很困惑,因为它看起来不像普通物体。我想将isOpen
变量设置为true
- 我该怎么做?