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

implement click event on MapOverlay #1396

Closed ichan-mb closed 3 years ago

ichan-mb commented 3 years ago

Added support for clicked/tapped event on MapOverlay

Examples:

<App>
    <ClientPanel>
        <JavaScript>
            module.exports.overlayTapped = function(args) {
                console.log("overlay tapped");
            }
        </JavaScript>
        <NativeViewHost Dock="Top" Height="250">
            <MapView ux:Name="map" Zoom="14" Latitude="-6.914742" Longitude="107.609820">               
                <MapOverlay Radius="60" Type="Circle" FillColor="Red" Tapped="{overlayTapped}"
                    CenterLatitude="-6.914742" CenterLongitude="107.609820" />
            </MapView>
        </NativeViewHost>
    </ClientPanel>
</App>

This PR contains:

mortend commented 3 years ago