How to add poi with icon on map screen

Hello,

I have a question on how to add a poi with icon on mission planner map screen using C# or python ? I am little bit familiar with C# plugins. I can’t find any resources or examples. Main problem is to use AIS ship system (getting GPS coordinates) and fly drones between ships. So I need only add poi icons on the map and refresh at some time periods.

Raimondas,

What about the add poi context menu from FlighData view ?

private void poiatcoordsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var location = "";
            InputBox.Show("Enter POI Coords", "Please enter the coords 'lat;long;alt' or 'lat;long'", ref location);

            var split = location.Split(';');

            if (split.Length == 3)
            {
                var lat = float.Parse(split[0], CultureInfo.InvariantCulture);
                var lng = float.Parse(split[1], CultureInfo.InvariantCulture);
                var alt = float.Parse(split[2], CultureInfo.InvariantCulture);

                POI.POIAdd(new PointLatLngAlt(lat, lng, alt));
            }
            else if (split.Length == 2)
            {
                var lat = float.Parse(split[0], CultureInfo.InvariantCulture);
                var lng = float.Parse(split[1], CultureInfo.InvariantCulture);
                var alt = srtm.getAltitude(MouseDownStart.Lat, MouseDownStart.Lng).alt / CurrentState.multiplieralt;
                POI.POIAdd(new PointLatLngAlt(lat, lng, alt));
            }
            else
            {
                CustomMessageBox.Show(Strings.InvalidField, Strings.ERROR);
            }
        }

POI is in the namespace MissionPlanner.Utilities