<li>Gestures
<ul>
<li><code>Tizen.Maps.MapView.Scrolled</code>: Scroll gesture is detected over the widget.</li>
- <li><code>Tizen.Maps.MapView.ZoomChanged</code>: Zoom gesture is detected over the widget.</li>
+ <li><code>Tizen.Maps.MapView.TwoFingerZoomed</code>: Two-finger zoom gesture is detected over the widget.</li>
<li><code>Tizen.Maps.MapView.Clicked</code>: Click gesture is detected over the widget.</li>
<li><code>Tizen.Maps.MapView.DoubleClicked</code>: Double-click gesture is detected over the widget.</li>
- <li><code>Tizen.Maps.MapView.TwoFingerPressed</code>: Two-finger press gesture is detected over the widget.</li>
- <li><code>Tizen.Maps.MapView.Rotated</code>: Rotation gesture is detected over the widget.</li>
+ <li><code>Tizen.Maps.MapView.TwoFingerClicked</code>: Two-finger click gesture is detected over the widget.</li>
+ <li><code>Tizen.Maps.MapView.TwoFingerRotated</code>: Two-finger rotation gesture is detected over the widget.</li>
<li><code>Tizen.Maps.MapView.LongPressed</code>: Long-press gesture is detected over the widget.</li>
</ul></li>
<li>Others
</pre>
</li>
-<li><p>Before you create a <code>Tizen.Maps.MapService</code> instance, make sure that the device user has consented to allow the map provider to use their location information. Depending on a map provider, a UI window to get user consent can be shown on the screen.</p>
-<p>If the consent request returns <code>false</code>, creating a <code>Tizen.Maps.MapService</code> instance fails.</p>
+<li>Create a <code>Tizen.Maps.MapService</code> class instance using the provider name and provider key issued by the map provider:</p>
<pre class="prettyprint">
-bool isConsented = await MapService.RequestUserConsent("MAPS_PROVIDER_NAME");
-Log.Info("Tizen.Maps", $"User consent for MAPS_PROVIDER_NAME = {isConsented}");
+var maps = new MapService("MAPS_PROVIDER_NAME", "Your-Maps-Provider-Key");
</pre>
</li>
-<li><p>Before you use the <a href="https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1Maps.html">Tizen.Maps</a> namespace, create a <code>Tizen.Maps.MapService</code> object instance.</p>
-<p>Set the provider name and provider key issued by the map provider:</p>
+<li>You must make sure that the device user has consented to allow the map provider to use their location information. Depending on the map provider, a UI window to get user consent can be shown on the screen.
+<p>If the consent request returns <code>false</code>, you cannot use most of the methods and properties of the Tizen.Maps namespace.</p>
<pre class="prettyprint">
-var maps = new MapService("MAPS_PROVIDER_NAME", "Your-Maps-Provider-Key");
+bool isConsented = await maps.RequestUserConsent();
+Log.Info("Tizen.Maps", $"User consent = {isConsented}");
</pre>
</li>
<pre class="prettyprint">
try
{
- bool isconsented = await MapService.RequestUserConsent("MAP_PROVIDER_NAME");
- if (isconsented)
- {
- maps = new MapService("MAP_PROVIDER_NAME", "Your-Map-Provider-Key");
- window = new Window("Test");
- mapview = new MapView(window, maps);
+ window = new Window("Test");
+ mapview = new MapView(window, maps);
- mapview.Resize(w, h - 100);
- mapview.Move(0, 100);
- mapview.Show();
- }
+ mapview.Resize(w, h - 100);
+ mapview.Move(0, 100);
+ mapview.Show();
}
catch (Exception e)
{
</pre>
</li>
-<li>Set the map view scalebar with the <a href="https://developer.tizen.org/dev-guide/csapi/classTizen_1_1Maps_1_1MapView.html#aaed708132611cc59b24e3660169e1754">Tizen.Maps.MapView.ScalebarEnabled</a> property:
+<li>Set the map view scalebar with the <a href="https://developer.tizen.org/dev-guide/csapi/classTizen_1_1Maps_1_1MapView.html#aaed708132611cc59b24e3660169e1754">Tizen.Maps.MapView.ScaleBarEnabled</a> property:
<pre class="prettyprint">
-mapview.ScalebarEnabled = true;
+mapview.ScaleBarEnabled = true;
</pre>
</li>
</script>
</body>
</html>
-
-
-
-