Skip to content

Latest commit

 

History

History
94 lines (69 loc) · 3.22 KB

README.md

File metadata and controls

94 lines (69 loc) · 3.22 KB

Map Widgets Components Library

Crates.io MinSdk: 17 write: Kotlin

This is a collection of UI compound components that you can use with mapping applications. There maybe other appropriate applications these are useful with too.

Installation

Step 1. Add the JitPack repository to your project build.gradle file

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency in the form

	dependencies {
	        implementation 'com.github.kenargo:map_widgets:${latest_version}'
	}

Sample App Included shows Java and Kotlin use

  • Full support of Android Dark Mode

See example images below

Self documenting:

<declare-styleable name="WidgetMapType">
    <attr name="widgetMapTypeSelection">
        <enum name="none" value="0" />
        <enum name="normal" value="1" />
        <enum name="satellite" value="2" />
        <enum name="terrain" value="3" />
        <enum name="hybrid" value="4" />
    </attr>

    <attr name="widgetMapTypeOptions" format="flags">
        <flag name="normal" value="0x01" />
        <flag name="satellite" value="0x02" />
        <flag name="terrain" value="0x04" />
        <flag name="hybrid" value="0x08" />
    </attr>

    <attr name="widgetMapTypeDismissOnSelection" format="boolean" />

</declare-styleable>

<declare-styleable name="WidgetMapCenterLock">
    <attr name="widgetMapCenterLockSelection">
        <enum name="none" value="0" />
        <enum name="pilot" value="1" />
        <enum name="takeoff" value="2" />
        <enum name="aircraft" value="3" />
    </attr>

    <attr name="widgetMapCenterLockOptions" format="flags">
        <flag name="pilot" value="0x01" />
        <flag name="takeoff" value="0x02" />
        <flag name="aircraft" value="0x04" />
    </attr>

    <attr name="widgetMapCenterLockDismissOnSelection" format="boolean" />

</declare-styleable>

<declare-styleable name="WidgetLocationCoordinate">
    <attr name="widgetLocationCoordinateLatitude" format="string" />
    <attr name="widgetLocationCoordinateLatitudePattern" format="string" />

    <attr name="widgetLocationCoordinateLongitude" format="string" />
    <attr name="widgetLocationCoordinateLongitudePattern" format="string" />

</declare-styleable>

## Credits: