Members
(constant) map :ol.Map
Main map
Type:
- ol.Map
(constant) pinLayer :ol.layer.VectorLayer
Vector layer for pin vector source
Type:
- ol.layer.VectorLayer
(constant) pinSource :ol.source.VectorSource
Vector source for pins
Type:
- ol.source.VectorSource
(constant) popup :ol.Overlay
Overlay element for pin popups
Type:
- ol.Overlay
Methods
disposePopover()
Removes store information popup from screen
map.oncick()
Handles user clicks. If user clicks on a pixel that contains a pin,
display popup with store information
window.passLocation(lon, lat)
Centers location on user based on location information passed in
from expo-location
Parameters:
| Name | Type | Description |
|---|---|---|
lon |
number | User's longitude |
lat |
number | User's latitude |
window.placePin()
Begins store creation process if user clicks on "New" button