Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a static map snapshot #1076

Merged
merged 29 commits into from
Sep 28, 2022

Conversation

hungtrn75
Copy link
Contributor

PR for #957

@felix-ht
Copy link
Collaborator

felix-ht commented Jun 2, 2022

@hungtrn75 im quite busy right now - will take some time until i can review this

@jeybs
Copy link

jeybs commented Jul 22, 2022

hoping to get this feature merge.

@hungtrn75 hungtrn75 requested a review from AAverin August 22, 2022 07:27
@hungtrn75 hungtrn75 requested a review from AAverin August 22, 2022 09:31
@AAverin
Copy link
Contributor

AAverin commented Aug 22, 2022

Looks good to me.
It would be lovely to have a second eye on this.

Copy link
Collaborator

@felix-ht felix-ht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also run get formatting? checkout flutter_ci.yml

case "snapshot#takeSnap":
{
FileSource.getInstance(context).activate();
MapSnapshotter.Options snapShotOptions = new MapSnapshotter.Options((int) call.argument("width"), (int) call.argument("height"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be final?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. this is final

lib/src/controller.dart Outdated Show resolved Hide resolved
@hungtrn75 hungtrn75 requested review from felix-ht and removed request for AAverin August 23, 2022 09:52
@hungtrn75 hungtrn75 had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN August 31, 2022 12:52 Failure
@hungtrn75 hungtrn75 had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN August 31, 2022 12:53 Failure
@hungtrn75 hungtrn75 had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN September 28, 2022 09:31 Failure
@hungtrn75 hungtrn75 had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN September 28, 2022 09:31 Failure
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN September 28, 2022 15:43 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN September 28, 2022 15:43 Inactive
@felix-ht felix-ht merged commit 3e490a8 into flutter-mapbox-gl:master Sep 28, 2022
PhilippMatthes added a commit to priobike/priobike-flutter-mapbox that referenced this pull request Sep 29, 2022
* Add makefile for formatting (flutter-mapbox-gl#1181)

* refactor and fix ci the file
* add makefile for formatting and installing formatting tools

* Create a static map snapshot (flutter-mapbox-gl#1076)

* android impl

* take snapshot ios

* config for each platform interface

* take snapshot in ios

* take snap in android && example

* android hybrid composition

* ios test

* test with android hybrid composition

* Update README.md

* use JPG instead of PNG with writeToDisk option & remove unused funtions

* render example result with base64 option

* remove team ID in example

* iOS: use JPG instead of PNG

* rename funtion

* test flutter ci

* test ci

* ci: check swift formatting

* ci: test check java formatting

* ci: check java formatting

* ci: test check java formatting

* document for take snapshot feature

* revert ci config

* migration: jpeg with base64 option

* docs: web support

* feat: web support with base64 option

* ci: test github ci

* lint: ignore unnecessary_import

* ci: reverse config

Co-authored-by: Felix Horvat <felix.horvat@ocell.io>
Co-authored-by: Hung Tran <32390731+hungtrn75@users.noreply.github.com>
FreeGrow added a commit to FreeGrow/maps that referenced this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants