From wiki.ginstr.com
Jump to: navigation, search
(Related actions)
 
(10 intermediate revisions by the same user not shown)
Line 113: Line 113:
 
Can be:  
 
Can be:  
 
: <code>none</code> - default value
 
: <code>none</code> - default value
 +
: <code>device</code> - as the phone rotates, it changes the map view orientation on 4 different angles (0,90,180,270)
 +
: <code>dynamic</code> - as the phone rotates, it changes the map view orientation on each angle (0-359)
 +
: <code>compass</code> - changes the map view orientation on each compass angle (0-359)
 
: <code>90</code>
 
: <code>90</code>
 
: <code>180</code>
 
: <code>180</code>
 
: <code>270</code>
 
: <code>270</code>
: <code>device</code>
 
: <code>dynamic</code>
 
: <code>compass</code>
 
 
|}
 
|}
 
==Events==
 
: <code>[[gn:act_setClick]]</code>
 
: <code>[[gn:act_setLongClick]]</code>
 
  
 
==Data types==
 
==Data types==
Line 129: Line 125:
 
|-
 
|-
 
! scope="col" | Input
 
! scope="col" | Input
 +
! scope="col" | Description
 +
|-
 +
| title="Value" | <code>[[Datatypes#rows|rows]]</code>
 +
| title="Value" | must contains columns defined in column attributes
 
|-
 
|-
| title="Value" | <code>[[Datatypes#rowsColumn|rowsColumn]]([[Datatypes#date|date]])</code>
+
| title="Value" | <code>[[Datatypes#gps|gps]]</code>
 +
| title="Value" | creates/updates the row with <code>gn:columnType="typeMyLocation"</code>
 
|}
 
|}
  
Line 137: Line 138:
 
! scope="col" | Output
 
! scope="col" | Output
 
|-
 
|-
| title="Value" | <code>[[Datatypes#rowsColumn|rowsColumn]]([[Datatypes#date|date]])</code>
+
| title="Value" | <code>[[Datatypes#rows|rows]]</code>
 
|}
 
|}
  
 
==Example==
 
==Example==
 
<syntaxhighlight code="xml">
 
<syntaxhighlight code="xml">
<com.ginstr.widgets.GnCalendar
+
<com.ginstr.widgets.GnMap
  xmlns:app="http://schemas.android.com/apk/res-auto"
+
android:id="@+id/gnMapView"
  android:id="@+id/calendarView"
+
android:layout_width="wrap_content"  
  android:layout_width="match_parent"
+
android:layout_height="wrap_content"
  android:layout_height="wrap_content"
+
android:padding="10dp"
  gn:showOtherDates="none"
+
gn:columnMarkerGps="uploadedImage_gps"
  gn:selectionMode="range"
+
gn:columnMarkerName="uploadedImage_name"
  gn:selectionColor="#000000"
+
gn:columnMarkerPhoto="uploadedImage_image"
  gn:arrowColorFilter="#ffffff"
+
gn:columnMarkerInformation="uploadedImage_description"
  gn:headerTextColor="#32a852"
+
gn:columnRoutePath="routePath"
  gn:headerBackgroundColor="#00000000"
+
gn:columnType="type"
  gn:currentDayTextColor="#a85232"
+
gn:markerBackgroundColor="#4287f5"
  gn:currentMonthDayTextColor="#ffffff"
+
gn:markerTextColor="#fcd2f6"
  android:background="#00ffffff"
+
gn:markerTextSize="12sp"
/>
+
gn:myLocationBackgroundColor="#4287f5"
 +
gn:myLocationBackgroundColorStroke="#ffffff"
 +
gn:mapOrientation="none"
 +
gn:act_set="[gn:act_addRow]|[@+id/gnMapView;type,routePath;@variable/typeRoutePath,@variable/routeMapPath]" />
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Summary:
+
==Related actions==
255
+
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
This is a minor edit
+
|-
Watch this page
+
! scope="col" | Action
Please note that all contributions to wiki.ginstr.com may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
+
! scope="col" | Description
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see wiki.ginstr.com:Copyrights for details). Do not submit copyrighted work without permission!
+
|-
 
+
| title="Action" | <code>[[gn:act_zoomToSpan]]</code>
    | Editing help (opens in new window)
+
| title="Description" | [[:Category:Actions|Action]] which executes zooming to all elements on the map
Navigation menu
+
|}
DinkoTalkPreferencesWatchlistContributionsLog outPageDiscussionReadEditView historyUnwatch
 
More
 
Search
 
Search wiki.ginstr.com
 
Main page
 
News
 
revision history
 
Tools
 
What links here
 
Related changes
 
Upload file
 
Special pages
 
Page information
 
Categories
 
► ginstr app manuals
 
► ginstr business app maker manual
 
► ginstr developers manual
 
► ginstr web manual
 
► SSO manual
 
Privacy policyImprintDisclaimersPowered by MediaWiki
 

Latest revision as of 14:45, 1 June 2020

GnMap (M103.8.0.6)

Widget XML tag
<com.ginstr.widgets.GnMap>
Description
GnMap inherits osmdroid component.
Provides map functionality.

XML Attributes Description

Attribute Description
gn:columnMarkerGps Represents the column name for the marker GPS
Attribute Description
gn:columnMarkerName Represents the column name for the marker name
Attribute Description
gn:columnMarkerPhoto Represents the column name for the marker photo
Attribute Description
gn:columnMarkerInformation Represents the column name for the marker description
Attribute Description
gn:columnRoutePath Represents the column name for the route path data
Attribute Description
gn:columnType Represents the column name for the marker type

Can be:

typeMarker - default value
typeRoutePath
typeMyLocation
Attribute Description
gn:markerBackgroundColor Represents the marker background color
gn:markerTextColor Represents the marker text color
gn:markerTextSize Represents the marker text size
gn:myLocationBackgroundColor Represents the my own location marker color
gn:myLocationBackgroundColorStroke Represents the my own location stroke color
gn:mapOrientation Represents the map orientation

Can be:

none - default value
device - as the phone rotates, it changes the map view orientation on 4 different angles (0,90,180,270)
dynamic - as the phone rotates, it changes the map view orientation on each angle (0-359)
compass - changes the map view orientation on each compass angle (0-359)
90
180
270

Data types

Input Description
rows must contains columns defined in column attributes
gps creates/updates the row with gn:columnType="typeMyLocation"
Output
rows

Example

<com.ginstr.widgets.GnMap
	android:id="@+id/gnMapView"
	android:layout_width="wrap_content" 
	android:layout_height="wrap_content"
	android:padding="10dp"	
	gn:columnMarkerGps="uploadedImage_gps"
	gn:columnMarkerName="uploadedImage_name"
	gn:columnMarkerPhoto="uploadedImage_image"
	gn:columnMarkerInformation="uploadedImage_description"
	gn:columnRoutePath="routePath"
	gn:columnType="type"
	gn:markerBackgroundColor="#4287f5"	
	gn:markerTextColor="#fcd2f6"
	gn:markerTextSize="12sp"
	gn:myLocationBackgroundColor="#4287f5"
	gn:myLocationBackgroundColorStroke="#ffffff"
	gn:mapOrientation="none"
	gn:act_set="[gn:act_addRow]|[@+id/gnMapView;type,routePath;@variable/typeRoutePath,@variable/routeMapPath]" />

Related actions

Action Description
gn:act_zoomToSpan Action which executes zooming to all elements on the map