Allow the api_key to be loaded from a variable
DamienMcKenna - September 4, 2009 - 14:59
| Project: | Mapstraction |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Because many mapping APIs require a per-domain key it is best to store these in the site's settings.php file, then maybe allow this value to be overridden through the View for people who don't need that functionality.

#1
A simple patch that loads a variable in the format: $api_id . 'map_api_key', e.g. 'googlemap_api_key'.
#2
It's a starting point, something to get by on until a better solution is worked out.