Add a Button to bring the map view back to current position
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 16 Jun 2012 18:32:25 +0000 (18:32 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 16 Jun 2012 18:32:25 +0000 (18:32 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5147 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/xslt/android.xslt
navit/navit/xslt/osd_minimum.xslt

index 9ccd15a..e13734a 100644 (file)
@@ -39,6 +39,7 @@
       <xsl:copy>
          <xsl:copy-of select="@*"/>
          <xsl:attribute name="zoom">32</xsl:attribute>
+         <xsl:attribute name="timeout">86400</xsl:attribute>
          <xsl:apply-templates/>
       </xsl:copy>
    </xsl:template>
index d8ffac7..8d39255 100644 (file)
@@ -16,6 +16,8 @@
       <xsl:text>&#x0A;        </xsl:text>
       <osd type="button" src="gui_zoom_out_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="zoom_out()" x="0" y="{round(number($ICON_BIG)+8*number($OSD_SIZE))}" osd_configuration="1"/>
       <xsl:text>&#x0A;        </xsl:text>
+      <osd type="button" src="cursor_{number($ICON_BIG)}_{number($ICON_BIG)}.png" command="follow=0;set_center_cursor()" x="{round(-60*number($OSD_SIZE))}" y="{round(40*number($OSD_SIZE))}" enable_expression="follow>1"/>
+      <xsl:text>&#x0A;        </xsl:text>
       <xsl:copy><xsl:copy-of select="@*|node()"/></xsl:copy>
    </xsl:template>
 </xsl:transform>