Class MarkerManager : getTemplate Method
MarkerTemplate getTemplate( type Int or String ) |
Summary
Returns a Marker Template given either the template name or it's ID.
Parameters
Parameter | Description |
type Int or String |
Can either be a String "name" of the template type, or an Int "ID". |
|
|
|
Returns
Returns a MarkerTemplate
Examples
Code below gets the v2.0 template and populates the menu with the template search terms.var template = app.getMarkerManager().getTemplate( "favourite" ); if( template ) { var arrST = template.getSearchTerms(); for( i in arrST ) { menu.addItem( "Favourite|" + arrST[ i ], "onInclude" ); } } else { menu.addItem( "Eeek, favourites not found", "onInclude" ); }
|
See Also
MarkerTemplate
Requirements
Build 1059
|