using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
-using ElmSharp;
using Tizen.Location;
using Tizen.Maps;
using Xamarin.Forms.Platform.Tizen;
+using TPin = Tizen.Maps.Pin;
namespace Xamarin.Forms.Maps.Tizen
{
const string MoveMessageName = "MapMoveToRegion";
bool _disposed;
- Overlay _marker;
+ Marker _marker;
bool _isLocatorStarted = false;
Lazy<Locator> _locator = new Lazy<Locator>(InitializeLocator);
Dictionary<Pin, MapObject> _pins = new Dictionary<Pin, MapObject>();
foreach (Pin pin in pins)
{
var coordinates = new Geocoordinates(pin.Position.Latitude, pin.Position.Longitude);
- var rectangle = new Background(Platform.Tizen.Forms.Context.MainWindow);
- // TODO: Need to change BubbleOverlay to default Marker
- // TODO: Need to handle Pin.Clicked event
- var nativePin = new BubbleOverlay(coordinates, rectangle);
+ var nativePin = new TPin(coordinates);
+ nativePin.Clicked += (s, e) =>
+ {
+ pin.SendTap();
+ };
Control.Add(nativePin);
_pins.Add(pin, nativePin);
}
void Dummy(object sender, MapGestureEventArgs e)
{
- //TODO: The implementation of Tizen.Maps needs to be changed to remove this method
+ // The implementation of Tizen.Maps needs to be changed to remove this method
}
void ApplyIsShowingUser(Geocoordinates coordinates)
{
if (_marker == null)
{
- var rectangle = new Background(Platform.Tizen.Forms.Context.MainWindow);
- // TODO: Need to change BubbleOverlay to Default Overlay
- _marker = new BubbleOverlay(coordinates, rectangle);
+ _marker = new Sticker(coordinates);
_marker.IsVisible = false;
Control.Add(_marker);
}