return value;
}
- err.WarnIfFailed($"Native getter for {propertyName} failed");
+ //err.WarnIfFailed($"Native getter for {propertyName} failed");
return default(T);
}
return value;
}
- err.WarnIfFailed($"Native getter for {propertyName} failed");
+ //err.WarnIfFailed($"Native getter for {propertyName} failed");
return string.Empty;
}
<None Include="Tizen.Maps.snk" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Interop\Interop.AddressList.cs" />
- <Compile Include="Interop\Interop.CoordinatesList.cs" />
- <Compile Include="Interop\Interop.PlaceList.cs" />
- <Compile Include="Interop\Interop.SafeMapsHandle.cs" />
- <Compile Include="Interop\Interop.View.Marker.cs" />
- <Compile Include="Interop\Interop.View.Overlay.cs" />
- <Compile Include="Interop\Interop.View.Polygon.cs" />
- <Compile Include="Interop\Interop.View.Polyline.cs" />
- <Compile Include="Tizen.Maps\IGeocodePreference.cs" />
- <Compile Include="Tizen.Maps\IPlaceSearchPreference.cs" />
- <Compile Include="Tizen.Maps\IRouteSearchPreference.cs" />
- <Compile Include="Tizen.Maps\MapView.cs" />
- <Compile Include="Tizen.Maps\GestureType.cs" />
- <Compile Include="Tizen.Maps\Overlay.cs" />
- <Compile Include="Tizen.Maps\Polygon.cs" />
- <Compile Include="Tizen.Maps\Polyline.cs" />
- <Compile Include="Tizen.Maps\MapGestureEventArgs.cs" />
- <Compile Include="Tizen.Maps\MapObject.cs" />
- <Compile Include="Tizen.Maps\MapTypes.cs" />
- <Compile Include="Tizen.Maps\Marker.cs" />
<Compile Include="Interop\Interop.Address.cs" />
+ <Compile Include="Interop\Interop.AddressList.cs" />
<Compile Include="Interop\Interop.Area.cs" />
- <Compile Include="Interop\Interop.Libraries.cs" />
<Compile Include="Interop\Interop.Coordinates.cs" />
+ <Compile Include="Interop\Interop.CoordinatesList.cs" />
<Compile Include="Interop\Interop.ErrorCode.cs" />
+ <Compile Include="Interop\Interop.Libraries.cs" />
+ <Compile Include="Interop\Interop.PlaceList.cs" />
+ <Compile Include="Interop\Interop.Place.cs" />
<Compile Include="Interop\Interop.Place.Attribute.cs" />
<Compile Include="Interop\Interop.Place.Category.cs" />
<Compile Include="Interop\Interop.Place.Contact.cs" />
- <Compile Include="Interop\Interop.Place.cs" />
<Compile Include="Interop\Interop.Place.Editorial.cs" />
<Compile Include="Interop\Interop.Place.Filter.cs" />
<Compile Include="Interop\Interop.Place.Image.cs" />
<Compile Include="Interop\Interop.Route.cs" />
<Compile Include="Interop\Interop.Route.Maneuver.cs" />
<Compile Include="Interop\Interop.Route.Segment.cs" />
+ <Compile Include="Interop\Interop.SafeMapsHandle.cs" />
<Compile Include="Interop\Interop.Service.cs" />
<Compile Include="Interop\Interop.View.cs" />
<Compile Include="Interop\Interop.View.Event.Data.cs" />
+ <Compile Include="Interop\Interop.View.Marker.cs" />
<Compile Include="Interop\Interop.View.Object.cs" />
+ <Compile Include="Interop\Interop.View.Overlay.cs" />
+ <Compile Include="Interop\Interop.View.Polygon.cs" />
+ <Compile Include="Interop\Interop.View.Polyline.cs" />
<Compile Include="Interop\Interop.View.Snapshot.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Tizen.Maps\PlaceAddress.cs" />
- <Compile Include="Tizen.Maps\PlaceAddressList.cs" />
<Compile Include="Tizen.Maps\Area.cs" />
- <Compile Include="Tizen.Maps\Geocoordinates.cs" />
- <Compile Include="Tizen.Maps\GeocoordinatesList.cs" />
<Compile Include="Tizen.Maps\Direction.cs" />
<Compile Include="Tizen.Maps\DistanceUnit.cs" />
+ <Compile Include="Tizen.Maps\Geocoordinates.cs" />
+ <Compile Include="Tizen.Maps\GeocoordinatesList.cs" />
<Compile Include="Tizen.Maps\GeocodeRequest.cs" />
+ <Compile Include="Tizen.Maps\GestureType.cs" />
+ <Compile Include="Tizen.Maps\IGeocodePreference.cs" />
+ <Compile Include="Tizen.Maps\IPlaceSearchPreference.cs" />
+ <Compile Include="Tizen.Maps\IRouteSearchPreference.cs" />
+ <Compile Include="Tizen.Maps\Log.cs" />
+ <Compile Include="Tizen.Maps\MapGestureEventArgs.cs" />
+ <Compile Include="Tizen.Maps\MapObject.cs" />
<Compile Include="Tizen.Maps\MapService.cs" />
<Compile Include="Tizen.Maps\MapServiceRequest.cs" />
+ <Compile Include="Tizen.Maps\MapTypes.cs" />
+ <Compile Include="Tizen.Maps\MapView.cs" />
+ <Compile Include="Tizen.Maps\Marker.cs" />
<Compile Include="Tizen.Maps\MultiReverseGeocodeRequest.cs" />
+ <Compile Include="Tizen.Maps\Overlay.cs" />
<Compile Include="Tizen.Maps\Place.cs" />
+ <Compile Include="Tizen.Maps\PlaceAddress.cs" />
+ <Compile Include="Tizen.Maps\PlaceAddressList.cs" />
<Compile Include="Tizen.Maps\PlaceAttribute.cs" />
<Compile Include="Tizen.Maps\PlaceCategory.cs" />
<Compile Include="Tizen.Maps\PlaceContact.cs" />
<Compile Include="Tizen.Maps\PlaceList.cs" />
<Compile Include="Tizen.Maps\PlaceMedia.cs" />
<Compile Include="Tizen.Maps\PlaceRating.cs" />
- <Compile Include="Tizen.Maps\PlaceSearchRequest.cs" />
<Compile Include="Tizen.Maps\PlaceReview.cs" />
+ <Compile Include="Tizen.Maps\PlaceSearchRequest.cs" />
+ <Compile Include="Tizen.Maps\Polygon.cs" />
+ <Compile Include="Tizen.Maps\Polyline.cs" />
<Compile Include="Tizen.Maps\ReverseGeocodeRequest.cs" />
<Compile Include="Tizen.Maps\Route.cs" />
<Compile Include="Tizen.Maps\RouteFeature.cs" />
"dependencies": {
"ElmSharp": "1.1.0-*",
"NETStandard.Library": "1.6.1",
- "Tizen": "1.0.2"
+ "Tizen": "1.0.3"
},
"frameworks": {
"netstandard1.3": {}
}
-}
\ No newline at end of file
+}
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Runtime.CompilerServices;
+
+namespace Tizen.Maps
+{
+ internal static class Log
+ {
+ private static String tag = "Tizen.Maps";
+
+ public static void Debug(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
+ {
+ Tizen.Log.Debug(tag, message, file, func, line);
+ }
+
+ public static void Error(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
+ {
+ Tizen.Log.Error(tag, message, file, func, line);
+ }
+
+ public static void Fatal(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
+ {
+ Tizen.Log.Fatal(tag, message, file, func, line);
+ }
+
+ public static void Info(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
+ {
+ Tizen.Log.Info(tag, message, file, func, line);
+ }
+
+ public static void Verbose(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
+ {
+ Tizen.Log.Verbose(tag, message, file, func, line);
+ }
+
+ public static void Warn(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
+ {
+ Tizen.Log.Warn(tag, message, file, func, line);
+ }
+ }
+}
public MapView(EvasObject parent, MapService service) : base(parent)
{
handle = new Interop.ViewHandle(service.handle, this);
- _service = service;
+ Log.Info(string.Format("MapView is created"));
+ _service = service;
this.Resize(1, 1);
// We need to keep Gesture Tap event enabled for object event to work
SetGestureEventCallback();
handle.SetGestureEnabled(Interop.ViewGesture.Scroll, true);
_scrolledEventHandler += value;
+ Log.Info(string.Format("Scrolled event handler is added"));
}
remove
{
_scrolledEventHandler -= value;
+ Log.Info(string.Format("Scrolled event handler is removed"));
if (_scrolledEventHandler == null)
{
handle.SetGestureEnabled(Interop.ViewGesture.Scroll, false);
SetGestureEventCallback();
handle.SetGestureEnabled(Interop.ViewGesture.Zoom, true);
_zoomedEventHandler += value;
+ Log.Info(string.Format("ZoomChanged event handler is added"));
}
remove
{
_zoomedEventHandler -= value;
+ Log.Info(string.Format("ZoomChanged event handler is removed"));
if (_zoomedEventHandler == null)
{
handle.SetGestureEnabled(Interop.ViewGesture.Zoom, false);
SetGestureEventCallback();
//handle.SetGestureEnabled(Interop.ViewGesture.Tap, true);
_tappedEventHandler += value;
+ Log.Info(string.Format("Clicked event handler is added"));
}
remove
{
_tappedEventHandler -= value;
+ Log.Info(string.Format("Clicked event handler is removed"));
if (_tappedEventHandler == null)
{
//handle.SetGestureEnabled(Interop.ViewGesture.Tap, false);
SetGestureEventCallback();
handle.SetGestureEnabled(Interop.ViewGesture.DoubleTap, true);
_doubleTappedEventHandler += value;
+ Log.Info(string.Format("DoubleClicked event handler is removed"));
}
remove
{
_doubleTappedEventHandler -= value;
+ Log.Info(string.Format("DoubleClicked event handler is removed"));
if (_doubleTappedEventHandler == null)
{
handle.SetGestureEnabled(Interop.ViewGesture.DoubleTap, false);
SetGestureEventCallback();
handle.SetGestureEnabled(Interop.ViewGesture.TwoFingerTap, true);
_twoFingerTappedEventHandler += value;
+ Log.Info(string.Format("TwoFingerPressed event handler is added"));
}
remove
{
_twoFingerTappedEventHandler -= value;
+ Log.Info(string.Format("TwoFingerPressed event handler is removed"));
if (_twoFingerTappedEventHandler == null)
{
handle.SetGestureEnabled(Interop.ViewGesture.TwoFingerTap, false);
SetGestureEventCallback();
handle.SetGestureEnabled(Interop.ViewGesture.Rotate, true);
_rotatedEventHandler += value;
+ Log.Info(string.Format("Rotated event handler is added"));
}
remove
{
_rotatedEventHandler -= value;
+ Log.Info(string.Format("Rotated event handler is removed"));
if (_rotatedEventHandler == null)
{
handle.SetGestureEnabled(Interop.ViewGesture.Rotate, false);
SetGestureEventCallback();
handle.SetGestureEnabled(Interop.ViewGesture.LongPress, true);
_longPressedEventHandler += value;
+ Log.Info(string.Format("LongPressed event handler is added"));
}
remove
{
_longPressedEventHandler -= value;
+ Log.Info(string.Format("LongPressed event handler is removed"));
if (_longPressedEventHandler == null)
{
handle.SetGestureEnabled(Interop.ViewGesture.LongPress, false);
{
SetViewReadyEventCallback();
_viewReadyEventHandler += value;
+ Log.Info(string.Format("ViewReady event handler is added"));
}
remove
{
_viewReadyEventHandler -= value;
+ Log.Info(string.Format("ViewReady event handler is removed"));
UnsetGestureEventCallback();
}
}
}
set
{
+ Log.Info(string.Format("ZoomLevel is changed from {0} to {1}", handle.ZoomLevel, value));
handle.ZoomLevel = value;
}
}
}
set
{
+ Log.Info(string.Format("MinimumZoomLevel is changed from {0} to {1}", handle.MinimumZoomLevel, value));
handle.MinimumZoomLevel = value;
}
}
}
set
{
+ Log.Info(string.Format("MaximumZoomLevel is changed from {0} to {1}", handle.MaximumZoomLevel, value));
handle.MaximumZoomLevel = value;
}
}
}
set
{
+ Log.Info(string.Format("Orientation is changed from {0} to {1}", handle.Orientation, value));
handle.Orientation = value;
}
}
}
set
{
+ Log.Info(string.Format("MapType is changed from {0} to {1}", handle.MapType, value));
handle.MapType = (Interop.ViewType)value;
}
}
}
set
{
+ Log.Info(string.Format("Showing the 3D buildings is {0}", (value ? "enabled" : "disabled")));
handle.BuildingsEnabled = value;
}
}
}
set
{
+ Log.Info(string.Format("Showing the traffic is {0}", (value ? "enabled" : "disabled")));
handle.TrafficEnabled = value;
}
}
}
set
{
+ Log.Info(string.Format("Showing the public transit is {0}", (value ? "enabled" : "disabled")));
handle.PublicTransitEnabled = value;
}
}
}
set
{
+ Log.Info(string.Format("Showing the scale-bar is {0}", (value ? "enabled" : "disabled")));
handle.ScalebarEnabled = value;
}
}
}
set
{
+ Log.Info(string.Format("Language is changed from {0} to {1}", handle.Language, value));
handle.Language = value;
}
}
}
set
{
+ Log.Info(string.Format("Center is changed from {0} to {1}", handle.Center, value.handle));
handle.Center = value.handle;
}
}
/// <param name="child">map object to add</param>
public void Add(MapObject child)
{
+ Log.Info(string.Format("Add a object"));
var objectHandle = child.GetHandle();
if (!_handleToObjectTable.ContainsKey(objectHandle))
{
/// <remarks>Once removed, child object will be become invalid</remarks>
public void Remove(MapObject child)
{
+ Log.Info(string.Format("Remove a object"));
var objectHandle = child.GetHandle();
if (_handleToObjectTable.Remove(objectHandle))
{
/// </summary>
public void RemoveAll()
{
+ Log.Info(string.Format("Remove all of objects"));
foreach (var child in _handleToObjectTable.Values)
{
child.InvalidateMapObject();
}
};
handle.SetEventCb(Interop.ViewEventType.Gesture, _gestureEventCallback, IntPtr.Zero);
+ Log.Info(string.Format("Gesture event callback is set"));
}
}
handle.UnsetEventCb(Interop.ViewEventType.Gesture);
_gestureEventCallback = null;
+ Log.Info(string.Format("Gesture event callback is unset"));
}
private void SetObjectEventCallback()
}
};
handle.SetEventCb(Interop.ViewEventType.Object, _objectEventCallback, IntPtr.Zero);
+ Log.Info(string.Format("Object event callback is set"));
}
}
_viewReadyEventHandler?.Invoke(this, EventArgs.Empty);
};
handle.SetEventCb(Interop.ViewEventType.Ready, _viewReadyEventCallback, IntPtr.Zero);
+ Log.Info(string.Format("ViewReady event callback is set"));
}
}
{
handle.UnsetEventCb(Interop.ViewEventType.Ready);
_viewReadyEventCallback = null;
+ Log.Info(string.Format("ViewReady event callback is unset"));
}
}
}
set
{
+ Log.Info(string.Format("Language is changed from {0} to {1}", handle.Language, value));
handle.Language = value;
}
}
}
set
{
+ Log.Info(string.Format("MaxResult is changed from {0} to {1}", handle.MaxResult, value));
handle.MaxResult = value;
}
}
}
set
{
+ Log.Info(string.Format("Unit is changed from {0} to {1}", handle.Unit, value));
handle.Unit = (Interop.DistanceUnit)value;
}
}
}
set
{
+ Log.Info(string.Format("CountryCode is changed from {0} to {1}", handle.CountryCode, value));
handle.CountryCode = value;
}
}
}
set
{
+ Log.Info(string.Format("Properties is changed from {0} to {1}", Properties.ToString(), value.ToString()));
_properties = value;
}
}
}
set
{
+ Log.Info(string.Format("Optimization is changed from {0} to {1}", handle.Optimization, value));
handle.Optimization = (Interop.RouteOptimization)value;
}
}
}
set
{
+ Log.Info(string.Format("TransportMode is changed from {0} to {1}", handle.TransportMode, value));
handle.TransportMode = (Interop.RouteTransportMode)value;
}
}
}
set
{
+ Log.Info(string.Format("RouteFeatureWeight is changed from {0} to {1}", handle.FeatureWeight, value));
handle.FeatureWeight = (Interop.RouteFeatureWeight)value;
}
}
}
set
{
+ Log.Info(string.Format("RouteFeature is changed from {0} to {1}", handle.Feature, value));
handle.Feature = (Interop.RouteRequestFeature)value;
}
}
}
set
{
+ Log.Info(string.Format("SearchAlternativeRoutes is {0}", (value ? "enabled" : "disabled")));
handle.AlternativesEnabled = value;
}
}
Name: csapi-maps
Summary: Tizen Map Service API for C#
Version: 1.0.10
-Release: 3
+Release: 4
Group: Development/Libraries
License: Apache-2.0 and SAMSUNG
URL: https://www.tizen.org