From wiki.ginstr.com
Jump to: navigation, search
(Action signatures)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div>
 
<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div>
<span STYLE="font-size: xx-large"><code>act_zoomToSpan</code></span>
+
<span STYLE="font-size: xx-large"><code>act_zoomToSpan</code> (M103.8.0.6)</span>
 
[[Category:Action_Library]]
 
[[Category:Action_Library]]
  
;Description: Zoom GnMap to all visible elements on the map
+
;Description: Used exclusively with <code>[[GnMap]]</code> widget to zoom to all visible elements on the map
  
 
;Action returns: void
 
;Action returns: void
Line 22: Line 22:
  
 
====Example====
 
====Example====
 
+
:<code>@+id/gnMapView</code> - GnMap widget<br>
=====screen.xml=====
+
:; ⤷ <code>[gn:act_zoomToSpan]|[@+id/gnMapView]</code>
<syntaxhighlight lang="xml">
 
<com.ginstr.widgets.GnCaptureSignatureEmbedded
 
    android:id="@+id/embeddedSignature"
 
    android:layout_width="match_parent"
 
    android:layout_height="match_parent"
 
    gn:backgroundColor="TRANSPARENT"
 
    gn:strokeColor="#3974d3"
 
    gn:signatureCaptureWidgetId="@+id/signatureBox"
 
    gn:controlPaddingWidgetId="@+id/controlsBox"
 
    gn:disableInternalEvents="clear"/>
 
 
 
<FrameLayout
 
    android:id="@+id/exampleFrame"
 
    android:layout_width="wrap_content"
 
    android:layout_height="wrap_content"
 
    android:visibility="gone"
 
    gn:act_set="[gn:callWidgetEvent]|[@+id/embeddedSignature,clear]" />
 
</syntaxhighlight>
 
 
<hr>
 
<hr>

Latest revision as of 15:00, 1 June 2020

act_zoomToSpan (M103.8.0.6)

Description
Used exclusively with GnMap widget to zoom to all visible elements on the map
Action returns
void

Action signatures

[gn:act_zoomToSpan]|[target]
Parameter Description
target target on which the action will be executed

Example

@+id/gnMapView - GnMap widget
[gn:act_zoomToSpan]|[@+id/gnMapView]