[ALOY-694] Add support for Google Maps v2 add-on module
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-10-02T17:43:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 20 |
Components | n/a |
Labels | n/a |
Reporter | Tim Poulsen |
Assignee | Tony Lukasavage |
Created | 2013-06-07T21:12:29.000+0000 |
Updated | 2014-06-22T13:21:31.000+0000 |
Description
As a developer, I would like to be able to use Alloy views and styles when adding maps to my Android app that implement the Google Maps v2 add-on module. I understand that I would still need to manually perform the other required steps for using this module (obtaining the API key and updating my tiapp.xml). But I'd like to use the tag as with Ti.Map so that I can add a map to my cross-platform app without doing the iOS map in XML and the Android map in the controller.
Looking at the currently generated code:
instances with your app's App ID
$.__views.map = Ti.Map.createView({
could be replaced with something like:
$.__mapmodule = require('ti.map');
$.__views.map = $.__mapmodule.createView({
There are platform-specific attributes, which can be handled with the existing platform-handling features in styles.
Android v2 maps can be used in markup as detailed in ALOY-817