fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

MapView: support for drawing Overlay #1352

Closed ichan-mb closed 4 years ago

ichan-mb commented 4 years ago

Adds support for drawing overlay on MapView

To overlay the map, you must decorate it with the MapOverlay node. There are three types of overlay that supported Polyline, Polygon, and Circle.

In order to draw Overlay, it needs to define the position where overlay should be drawn on the map using Coordinate property.

<NativeViewHost>
    <MapView Zoom="14" Latitude="-6.914742" Longitude="107.609820">
        <MapOverlay Type="Polyline" StrokeColor="Blue" LineWidth="5">
            <Coordinate Latitude="-6.914742" Longitude="107.609820" />
            <Coordinate Latitude="-6.915850" Longitude="107.609929" />
            <Coordinate Latitude="-6.916959" Longitude="107.611009" />
        </MapOverlay>
    </MapView>
</NativeViewHost>

This PR contains:

ckarmy commented 4 years ago

Wow looks great!

mortend commented 4 years ago

This branch has conflict after merging #1354. Rebase?

ichan-mb commented 4 years ago

Oh. it's the Changelog file that has a conflict. Sorted