Skip to content

Commit b4f96d1

Browse files
committed
deleted alll extras
1 parent b6d774b commit b4f96d1

File tree

241 files changed

+73
-19608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+73
-19608
lines changed
File renamed without changes.
File renamed without changes.

README.md

+53-102
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,60 @@
1-
# Plugins for the flutter_map ecosystem 🗺️
1+
# flutter_map_compass
22

3-
This repository contains multiple flutter packages that extend the
4-
functionality of [flutter_map](https://pub.dev/packages/flutter_map).
5-
6-
[![stars](https://badgen.net/github/stars/josxha/flutter_map_plugins?label=stars&color=green&icon=github)](https://github.com/josxha/flutter_map_plugins/stargazers)
7-
[![codecov](https://codecov.io/gh/josxha/flutter_map_plugins/graph/badge.svg?token=5045489G7X)](https://codecov.io/gh/josxha/flutter_map_plugins)
8-
[![GitHub last commit](https://img.shields.io/github/last-commit/josxha/flutter_map_plugins)](https://github.com/josxha/flutter_map_plugins)
9-
[![Issues](https://img.shields.io/github/issues/josxha/flutter_map_plugins)](https://github.com/josxha/flutter_map_plugins/issues)
10-
[![Open PRs](https://badgen.net/github/open-prs/josxha/flutter_map_cache?label=Open+PRs&color=green)](https://GitHub.com/josxha/flutter_map_plugins/pulls)
11-
12-
- A combined example app can be found under
13-
[./example](https://github.com/josxha/flutter_map_plugins)
14-
or use the hosted version
15-
at [https://flutter-map-plugins.web.app](https://flutter-map-plugins.web.app/).
16-
- Need a list of all `flutter_map` plugins? Check out
17-
the [awesome-flutter-map](https://github.com/josxha/awesome-flutter-map?tab=readme-ov-file#awesome-flutter-map)
18-
list.
19-
20-
## Packages
21-
22-
### [flutter_map_cache](https://pub.dev/packages/flutter_map_cache)
23-
24-
[![Pub Version](https://img.shields.io/pub/v/flutter_map_cache)](https://pub.dev/packages/flutter_map_cache)
25-
[![likes](https://img.shields.io/pub/likes/flutter_map_cache?logo=flutter)](https://pub.dev/packages/flutter_map_cache)
26-
[![Pub Popularity](https://img.shields.io/pub/popularity/flutter_map_cache)](https://pub.dev/packages/flutter_map_cache)
27-
28-
A slim yet powerful caching plugin for flutter_map tile layers. Supports any
29-
storage backend you would possibly want.
30-
31-
- This package fills the gap
32-
between [dio_cache_interceptor](https://pub.dev/packages/dio_cache_interceptor)
33-
and flutter_map.
34-
- Support for tile cancellation
35-
36-
### [flutter_map_compass](https://pub.dev/packages/flutter_map_compass)
3+
A simple compass for flutter_map. It shows the rotation of the map and resets
4+
the rotation back to 0 when tapped.
375

386
[![Pub Version](https://img.shields.io/pub/v/flutter_map_compass)](https://pub.dev/packages/flutter_map_compass)
397
[![likes](https://img.shields.io/pub/likes/flutter_map_compass?logo=flutter)](https://pub.dev/packages/flutter_map_compass)
8+
[![Pub Points](https://img.shields.io/pub/points/flutter_map_compass)](https://pub.dev/packages/flutter_map_compass/score)
409
[![Pub Popularity](https://img.shields.io/pub/popularity/flutter_map_compass)](https://pub.dev/packages/flutter_map_compass)
4110

42-
A compass for flutter_map that indicates the map rotation. It rotates the map
43-
back to north on top when clicked.
44-
45-
### [flutter_map_mbtiles](https://pub.dev/packages/flutter_map_mbtiles)
46-
47-
[![Pub Version](https://img.shields.io/pub/v/flutter_map_mbtiles)](https://pub.dev/packages/flutter_map_mbtiles)
48-
[![likes](https://img.shields.io/pub/likes/flutter_map_mbtiles?logo=flutter)](https://pub.dev/packages/flutter_map_mbtiles)
49-
[![Pub Popularity](https://img.shields.io/pub/popularity/flutter_map_mbtiles)](https://pub.dev/packages/flutter_map_mbtiles)
50-
51-
This package provides the `MbTilesTileProvider` that can be used with
52-
flutter_map tile layers.
53-
54-
- This package uses [mbtiles](https://pub.dev/packages/mbtiles) under the hood
55-
for the MBTiles support.
56-
- MBTiles is a file format to store map tiles in a single SQLite database.
57-
58-
### [flutter_map_pmtiles](https://pub.dev/packages/flutter_map_pmtiles)
59-
60-
[![Pub Version](https://img.shields.io/pub/v/flutter_map_pmtiles)](https://pub.dev/packages/flutter_map_pmtiles)
61-
[![likes](https://img.shields.io/pub/likes/flutter_map_pmtiles?logo=flutter)](https://pub.dev/packages/flutter_map_pmtiles)
62-
[![Pub Popularity](https://img.shields.io/pub/popularity/flutter_map_pmtiles)](https://pub.dev/packages/flutter_map_pmtiles)
63-
64-
This package provides the `PmTilesTileProvider` that can be used with
65-
flutter_map tile layers.
66-
67-
- This package uses [pmtiles](https://pub.dev/packages/pmtiles) under the hood
68-
for the PMTiles support.
69-
- PMTiles is an open archive format for pyramids of tile data, accessible via
70-
HTTP Range Requests. Head over to [protomaps.com](https://protomaps.com/) to
71-
learn more about
72-
PMTiles.
73-
74-
### [vector_map_tiles_mbtiles](https://pub.dev/packages/vector_map_tiles_mbtiles)
75-
76-
[![Pub Version](https://img.shields.io/pub/v/vector_map_tiles_mbtiles)](https://pub.dev/packages/vector_map_tiles_mbtiles)
77-
[![likes](https://img.shields.io/pub/likes/vector_map_tiles_mbtiles?logo=flutter)](https://pub.dev/packages/vector_map_tiles_mbtiles)
78-
[![Pub Popularity](https://img.shields.io/pub/popularity/vector_map_tiles_mbtiles)](https://pub.dev/packages/vector_map_tiles_mbtiles)
79-
80-
This package provides the `MbTilesVectorTileProvider` that can be used with
81-
the [vector_map_tiles](https://pub.dev/packages/vector_map_tiles) which itself
82-
adds support for vector tiles to flutter_map.
83-
84-
- This package uses [mbtiles](https://pub.dev/packages/mbtiles) under the hood
85-
for the MBTiles support.
86-
- MBTiles is a file format to store map tiles in a single SQLite database.
87-
88-
### [vector_map_tiles_pmtiles](https://pub.dev/packages/vector_map_tiles_pmtiles)
89-
90-
[![Pub Version](https://img.shields.io/pub/v/vector_map_tiles_pmtiles)](https://pub.dev/packages/vector_map_tiles_pmtiles)
91-
[![likes](https://img.shields.io/pub/likes/vector_map_tiles_pmtiles?logo=flutter)](https://pub.dev/packages/vector_map_tiles_pmtiles)
92-
[![Pub Popularity](https://img.shields.io/pub/popularity/vector_map_tiles_pmtiles)](https://pub.dev/packages/vector_map_tiles_pmtiles)
93-
94-
This package provides the `PmTilesVectorTileProvider` that can be used with
95-
the [vector_map_tiles](https://pub.dev/packages/vector_map_tiles) which itself
96-
adds support for vector tiles to flutter_map.
97-
98-
- This package uses [pmtiles](https://pub.dev/packages/pmtiles) under the hood
99-
for the PMTiles support.
100-
- PMTiles is an open archive format for pyramids of tile data, accessible via
101-
HTTP Range Requests. Head over to [protomaps.com](https://protomaps.com/) to
102-
learn more about
103-
PMTiles.
104-
105-
## Contributions
106-
107-
A huge thanks to all contributors! 😎
11+
[![GitHub last commit](https://img.shields.io/github/last-commit/josxha/flutter_map_plugins)](https://github.com/josxha/flutter_map_plugins)
12+
[![stars](https://badgen.net/github/stars/josxha/flutter_map_plugins?label=stars&color=green&icon=github)](https://github.com/josxha/flutter_map_plugins/stargazers)
13+
[![GitHub issues](https://img.shields.io/github/issues/josxha/flutter_map_plugins)](https://github.com/josxha/flutter_map_plugins/issues)
14+
[![codecov](https://codecov.io/gh/josxha/flutter_map_plugins/graph/badge.svg?token=5045489G7X)](https://codecov.io/gh/josxha/flutter_map_plugins)
10815

109-
[![List of contributors](https://contrib.rocks/image?repo=josxha/flutter_map_plugins)](https://github.com/josxha/flutter_map_plugins/graphs/contributors)
16+
<img src="https://raw.githubusercontent.com/josxha/flutter_map_plugins/main/flutter_map_compass/images/screenshot.jpg" width="350px" alt="Example screenshot">
17+
18+
## Getting started
19+
20+
Add the following packages to your `pubspec.yaml` file:
21+
22+
```yaml
23+
dependencies:
24+
flutter_map: ^6.0.0 # in case you don't have it yet
25+
flutter_map_compass: ^1.0.0 # this package
26+
```
27+
28+
## Usage
29+
30+
```dart
31+
@override
32+
Widget build(BuildContext context) {
33+
return FlutterMap(
34+
options: MapOptions(),
35+
children: [
36+
TileLayer(
37+
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
38+
),
39+
40+
// use the default compass that is based on the cupertino compass icon
41+
const MapCompass.cupertino(
42+
hideIfRotatedNorth: true,
43+
),
44+
45+
// Or use the primary constructor to customize all
46+
const MapCompass(
47+
icon: Icon(Icons.arrow_upward),
48+
hideIfRotatedNorth: true,
49+
),
50+
],
51+
);
52+
}
53+
```
54+
55+
## Additional information
56+
57+
If you need help you
58+
can [open an issue](https://github.com/josxha/flutter_map_plugins/issues/new/choose)
59+
or join
60+
the [`flutter_map` discord server](https://discord.gg/BwpEsjqMAH).

analysis_options.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
include: package:very_good_analysis/analysis_options.yaml
2-
3-
linter:
4-
rules:
5-
flutter_style_todos: false
6-
cascade_invocations: false
7-
sort_pub_dependencies: false
1+
include: ../analysis_options.yaml

codecov.yml

-18
This file was deleted.

example/.gitignore

-44
This file was deleted.

example/.metadata

-45
This file was deleted.

example/README.md

-1
This file was deleted.

example/analysis_options.yaml

-5
This file was deleted.

example/android/.gitignore

-13
This file was deleted.

example/android/app/build.gradle

-67
This file was deleted.

example/android/app/src/debug/AndroidManifest.xml

-7
This file was deleted.

0 commit comments

Comments
 (0)