Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 12308 |
Technical Name |
sol_map_coordinates_widget |
License | LGPL-3 |
Versions | 15.0 16.0 |
Map Coordinates Widget
Mark And Display Your Locations On The Map
Explore this module
Overview
It is a widget to display your locations on a map with the ability to mark new locations.
Get map coordinates for a specific location, store it, and then re-display that location.
Get the current location of your device.
Usage
To use the map inside your model you just need to:
location_longitude = fields.Float("Longitude")
Longitude: The name of the field in which the longitude of the location will be stored. (required)
Latitude: The name of the field in which the latitude of the location will be stored. (required)
Show_address_info: The details of the selected location will be displayed when set to "1".
Default_longitude: The default value for the location's longitude if the longitude field's value is empty.
Default_latitude: The default value for the location's latitude if the latitude field's value is empty.
You have to put this module in the dependencies of your module.
Latitude and longitude fields should be Float and you can use "digits=(8, 6)" to show coordinates clarity.
e.g. longitude = fields.Float(digits=(8, 6))
Latitude and longitude fields can't be read-only.
For the best map display, set a label for the map field.
Screenshots

Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!