Open rassmith opened 10 months ago
Hello sir, No, for this moment. for the near future I will also add this event.
Hello sir,
The new version of leafletforblazer (RealTimeMap) now has some event methods
Hi Laurentiu, thanks for adding new features to the package ....
Laurentiu I have another question. I'm trying to init default marker to map and use this event but that's not work how can I set default marker in map? mapPoint method works here in OnClickMap Event
Hello sir,
The syntax of your code is Javascript specific.
You have to write:
public async void OnClickMap(RealTimeMap.ClicksMapArgs arg)
{
await realTimeMap.movePoint(new double[] { arg.location.latitude, arg.location.longitude });
}
Hello sir,
actually I wanted to have a marker at a specific point when loading the map.
I try this way and its work (by remove await Task.Delay(1000);
, that don't work)
public async Task OnAfterMapLoaded(RealTimeMap.MapEventArgs param)
{
await Task.Delay(1000);
await param.sender.movePoint(new double[] { 44.4501715, 26.1107672 });
}
I'd like to know your opinion on whether this is the best way to implement it?
Hello sir, Your example is very good. It seems that the movePoint() method does not find the loaded map!?! I will check!!
You can use instead:
await param.sender.Geometric.Points.add(new RealTimeMap.StreamPoint() { latitude = 44.4501715, longitude = 26.1107672 });
Hi Laurentiu, thanks for package. I have a question, How can I get latitude and longitude on click event in new version?