Skip to content

OfflineMode bool variable added to TileLayerOptions for AssetImage Widget use#48

Merged
johnpryan merged 1 commit intofleaflet:masterfrom
alfanhui:feature/alfanhui/offlineMaps
Jun 7, 2018
Merged

OfflineMode bool variable added to TileLayerOptions for AssetImage Widget use#48
johnpryan merged 1 commit intofleaflet:masterfrom
alfanhui:feature/alfanhui/offlineMaps

Conversation

@alfanhui
Copy link
Copy Markdown
Contributor

@alfanhui alfanhui commented Jun 7, 2018

Resolves issue 3.
Added OfflineMode bool variable to TileLayerOptions, if true, image uses AssetImage(), if false (default) image uses NetworkImage().

Note: Only the newest (7th jun 2018) master build of flutter enables pubspec to look in asset directories, else pubspec will require direct paths to all map asset images.

To get offline maps tiles, see here: mbtilesToPngs

…ses AssetImage(), if false (default) image uses NetworkImage(). Note: Only the master build of flutter enables pubspec to look in asset directories, else pubspec will require direct paths to all map images. To get offline maps tiles, see here: https://github.com/alfanhui/mbtilesToPngs
@alfanhui
Copy link
Copy Markdown
Contributor Author

alfanhui commented Jun 7, 2018

Since I put through 3 pull requests, ill update the readme on those offline use once all 3 have been merged.

@johnpryan
Copy link
Copy Markdown
Collaborator

johnpryan commented Jun 7, 2018

This is really cool, thanks!

For the readme- do you have a sample project to link to?

@johnpryan johnpryan merged commit 121cb09 into fleaflet:master Jun 7, 2018
@alfanhui
Copy link
Copy Markdown
Contributor Author

alfanhui commented Jun 8, 2018

Why link a sample project when I can add to the examples!

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.

2 participants