important custom properties mentioned above are required to load the data in frappe’s field, you can add additional properties like arrival_time, departure_time, mode_of_transport etc as a key-value pair under properties. e.g. Use in mobile apps for tracking resources
Geolocation is fine.
Maybe the easiest to translate for everyone would be “Location” as this is the default term used in English Language Android/iOS etc.
Either that or “Locale” or “Map”. Just as all of these words are shorter than geolocation. The icon should be standard location “pin” icon.
I planned a similar feature and planned to use “geocode”. It’s shorter than “geolocation” and more meaningful than"geozone" but not worth getting upset over. “GeoJSON” is what is literally is, so that’d be fine too.
Hi @revant_one ,
I have successfully added a geolocation field (thanks to your contribution to this post!) to show all features (markers) from a featurecollection on a map , but i want to show the marker name (passed in properties as name on the featurecollection) when I click on the marker.
I have no idea on how to do that.
I tried:
Creating an attribute on the map’s HTML for each marker (and the calling it with jquery to show a tooltip.
Using the bindPopup method on a marker (but couldn’t find a way to call it).
I have not been able to make it work…Do you have any pointers?
Yes that i am aware but when you enable the location field in customer and do the get request of the same customer after creating the customer. Location is not part of the json response.
I have also tried using FrappeClient in bench console and still no location data being returned back in the response
Excellent good to hear - of course whatever ‘ah-ha’ learning tip notes that you can add for your own recall reference will help others follow in your steps too!
I have been going through the thread above but it doesn’t really my question so I was wondering if there way of adding description/details for points, polygons in the geolocation field on. For, example if I have more than one point and I want to give the first point a description as “point1” and the second as “point2” when the user hovers over the point as shown in the screenshot below.
The data is just geojson feature collection, you can save additional data manually (some customisation), if storing data is important. It won’t reflect on UI.
If you wish to add the feature, add appropriate leaflet plugin. Note that there is limited space on geolocation field, only important plugins are kept on UI.
@revant_one thanks alot for the prompt reply, I will have to think of another way to solve the issue. You also said the geojson field has limited space is there any other way of storing an unlimited number of points on a map for example if i want to see all the assets of a company in on one map in erpnext or can the max length of geojson field be customized.