static_map 0.2.0 copy "static_map: ^0.2.0" to clipboard
static_map: ^0.2.0 copied to clipboard

Quickly generate customizable static maps with support for markers and paths.

Journey Logo

Journey’s Static Maps platform is made for developers and designed to be easy to use and integrate. Get started by following our Flutter quickstart guide.

Example:

StaticMapImage(
    options: StaticMapOptions(
        width: 400,
        height: 400,
        padding: 50,
        scale: 2,
        overlays: [
            // Add a path to the map
            const StaticMapPath(
                polyline:
                    'w}seFdghjVrDe@xAS~AQfAMJAZElAO~@KXC~AQWcEGw@IqAS_DEu@OgB?IAOASAQc@qGi@gI_@wFIqAg@gIzAS|ASvDc@l@Gx@Kt@I^G?YHu@DSBGBIJQBE^c@d@o@Pc@FWBKBS?m@g@yHC_@C]c@}GIiASaDKyAAWMeBEk@IoAIkAO{BOaCKqAGcAEk@Eu@IeAIyAMiBEw@SeDE?',
                opacity: 0.9,
                outlineSize: 0,
            ),
            // Add origin marker
            const StaticMapMarker(
                point: LatLng(37.79052, -122.43587),
                color: Color(0xffC21DB3),
                size: 8,
            ),
            // Add destination marker
            const StaticMapMarker(
                point: LatLng(37.78603, -122.41134),
                color: Color(0xffC21DB3),
                size: 8,
            ),
        ],
    ),
);

Will generate the following map:

Example Map

Getting Started #

You can view our complete documentation at docs.journey.tech.

12
likes
0
pub points
62%
popularity

Publisher

verified publisherjourney.tech

Quickly generate customizable static maps with support for markers and paths.

Homepage

License

unknown (license)

Dependencies

flutter, freezed_annotation, http, latlong2

More

Packages that depend on static_map