static_map 0.3.1 copy "static_map: ^0.3.1" to clipboard
static_map: ^0.3.1 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: StaticMapLatLng(37.79052, -122.43587),
          color: Color(0xffC21DB3),
          size: 8,
      ),
      // Add destination marker
      const StaticMapMarker(
          point: StaticMapLatLng(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.

13
likes
150
points
101
downloads
screenshot

Publisher

verified publisherjourney.tech

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#map #widget #api #client

Documentation

Documentation
API reference

License

Apache-2.0 (license)

Dependencies

flutter, freezed_annotation, google_polyline_algorithm, http

More

Packages that depend on static_map