Closed cjrolfe closed 3 years ago
Nice component here: https://live.playg.app/play/lwc-to-set-geolocation-to-any-object
I've tested that component, and even got them to fix it to work on a mobile device. So possible enhancement to Animal Object for Geolocation field and component to populate.
Wonder if we could add a map snippet as well similar to the small Google Map for address.
Also add additional location type of animal released for Wildlife centres, which could store the geolocation
@cjrolfe Like the functionality, although if I were to suggest some enhancements:
Potentially use the component in the movement flow and have two new options for capture/collection of animal and also release/rehoming of animal, so that when either of these are selected, it has the option to enter an address or record a location.
We need to allow for multiple locations to be tracked and stored hence the option above, I feel would integrate into the existing interface already.
Other Notes/Changes
Tested on mobile and desktop and it captured the GPS.
The map needs to be within a Lightning Design System Card so that it looks more like a component on the page layout and I would set the default zoom level to about 16 so that its zoomed in. Currently it shows the right location, although the default zoom level shows the whole of the UK.
@GeekStewie QQ When you looked at the map, did you have a map on the left, and on the right a list of the animals being displayed, as per attach image? This is what it should look like (from my Dev Org), but in a scratch org I don't get the list, but the code is the same???
@cjrolfe I only get the map with no list
Ability to capture Geolocation of incoming animal Possible new Movement process for Animal Release with Geolocation