From a8b9603067cedc47539c41c17cb21077c351e35d Mon Sep 17 00:00:00 2001 From: chanywa Date: Thu, 7 Sep 2017 09:53:36 +0900 Subject: [PATCH] [ACR-38,58,74] modify some strings according to the ACRs PS2: Reviewed Change-Id: I47e63f461959223cfa68f7bfb61442370aed8258 --- .../html/dotnet/location_sensors/maps_cs.htm | 42 +++++++++------------- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/org.tizen.guides/html/dotnet/location_sensors/maps_cs.htm b/org.tizen.guides/html/dotnet/location_sensors/maps_cs.htm index eada80f..cd2e597 100755 --- a/org.tizen.guides/html/dotnet/location_sensors/maps_cs.htm +++ b/org.tizen.guides/html/dotnet/location_sensors/maps_cs.htm @@ -158,11 +158,11 @@
  • Gestures
  • Others @@ -212,18 +212,17 @@ foreach (var provider in providerList)
  • -
  • Before you create a Tizen.Maps.MapService 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.

    -

    If the consent request returns false, creating a Tizen.Maps.MapService instance fails.

    +
  • Create a Tizen.Maps.MapService class instance using the provider name and provider key issued by the map provider:

    -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");
     
  • -
  • Before you use the Tizen.Maps namespace, create a Tizen.Maps.MapService object instance.

    -

    Set the provider name and provider key issued by the map provider:

    +
  • 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. +

    If the consent request returns false, you cannot use most of the methods and properties of the Tizen.Maps namespace.

    -var maps = new MapService("MAPS_PROVIDER_NAME", "Your-Maps-Provider-Key");
    +bool isConsented = await maps.RequestUserConsent();
    +Log.Info("Tizen.Maps", $"User consent = {isConsented}");
     
  • @@ -559,17 +558,12 @@ catch (Exception e)
     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)
     {
    @@ -604,9 +598,9 @@ mapview.TrafficEnabled = true;
     
    -
  • Set the map view scalebar with the Tizen.Maps.MapView.ScalebarEnabled property: +
  • Set the map view scalebar with the Tizen.Maps.MapView.ScaleBarEnabled property:
    -mapview.ScalebarEnabled = true;
    +mapview.ScaleBarEnabled = true;
     
  • @@ -820,7 +814,3 @@ mapview.ViewReady -= handler; - - - - -- 2.7.4