ADE
ADE copied to clipboard
Location
A new directive to edit a geographic location.
$scope.myLoc = {title:'Home',address:'123 Main St',lat:45.678,lon:123.456}
..
<div ade-location ade-id="1234" ng-model="myLoc"></div>
A div with this directive on it would display text according to these rules:
- The title if it exists, otherwise..
- The Address, otherwise...
- The lat/lon coordinates, otherwise...
- The string: 'No location'
When clicking on this text, a popup Google Map will be displayed that will allow the following:

- Ability to search by address
- Ability to drag and drop the marker
- The ability to edit the title (not shown in image)
- The ability to remove the marker and clear the location
- Address will be filled automatically by Google lookup if available
See Toodledo's location editor here for reference (source code can be provided): http://www.toodledo.com/organize/locations.php
It would be best if we could avoid any external dependencies besides the Google SDK.