[TIMOB-7123] MobileWeb: Ti.Map.View implementation
| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-03-21T12:10:42.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | Release 2.0.0, Sprint 2012-06 |
| Components | MobileWeb |
| Labels | pointerevents |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2012-01-12T00:03:09.000+0000 |
| Updated | 2017-03-04T00:08:43.000+0000 |
Description
Needs entire implementation.
Rename file from "MapView.js" to "View.js". Also rename module name from "Ti/Map/MapView" to "Ti/Map/View".
Note: the 1.8 API has a conflict with both a method and property called "animate". Proposed renaming "animate" property to "animated".
Extends View and PointerEvents.
Methods:
* addAnnotation()
* addAnnotations()
* addRoute() - iOS specific, but perhaps doable
* deselectAnnotation()
* removeAllAnnotations()
* removeAnnotation()
* removeAnnotations()
* removeRoute()
* selectAnnotation()
* toImage() - can't directly be done, but might be able to leverage Google's static maps API
* zoom()
Properties:
* animated
* annotations - array of Ti.Map.Annotation objects
* mapType
* region
* regionFit
* userLocation
Events:
* complete - fired when the map completes loading
* error - fired when the map receives a mapping error
* loading - fired when the map begins loading
* regionChanged - fired when the mapping region changes
Implements all the events in PointerEvents, however this may conflict with the Google Maps functionality.
Attachments
| File | Date | Size |
| app.js | 2012-06-23T15:08:20.000+0000 | 1571 |
| app.js | 2012-06-23T15:08:20.000+0000 | 372 |
| app.js | 2012-06-23T15:08:20.000+0000 | 8230 |
| app.js | 2012-06-23T15:08:20.000+0000 | 3011 |
| geo.js | 2012-06-23T15:08:20.000+0000 | 1776 |
| route.csv | 2012-06-23T15:39:15.000+0000 | 7360 |
Closing ticket due to MobileWeb no longer being supported.