Comments (5)
The more I think about this the more I'm convinced that one good path here would be to build a DSL around the map. What if we could do something like this?
map {
annotations {
for (marker in markers)
marker { +marker.location }
}
sources {
...
}
layers {
...
}
}
Similar to what Anko does for Android layouts (https://github.com/Kotlin/anko#anko-layouts-wiki).
from mapbox-plugins-android.
One idea I have been having is using Kotlin extension functions to add functionality to already existing classes. Eg. you can dynamically add functions to MapboxMap based on the plugins you are pulling in.
update: looked more into this a while back and biggest downfall is that from a java side it doesn't look extended and you need to import a static method instead.
from mapbox-plugins-android.
Stale conversation and Kotlin discussion have been being made internally. Closing
from mapbox-plugins-android.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from mapbox-plugins-android.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
from mapbox-plugins-android.
Related Issues (20)
- Expression property in Annotations HOT 1
- [Enhancement] Scale bar text hard to read when map in satellite mode
- Camera bearing is not correct
- Problem with dragging points and updating lines in the newest version of the annotation plugin
- Publish new versions to Mapbox SDK registry
- Release OfflinPlugin v9:0.8.0
- Set up ci to automatically release plugins
- [plugin-annotation] Inverse click listeners
- Scrolling recyclerView which contains MapView keeps showing blacks screens over the activity.
- Mapbox places plugin does not work with android version 11, API 30.
- Dragging annotation after orientation change causes drag to stop at wrong times
- Traffic plugin does not work with Mapbox Navigation SDK 2.0.0
- Add Android 12 support HOT 1
- Symbol options does not support kotlinx serialization HOT 1
- Config release CI HOT 1
- Add throttle for offline plugin notification update
- Trouble adding a CircleAnnotation at specific index in circleAnnotationManager.annotations
- Add support for android 12
- Offline plugin: java.lang.IllegalStateException - Missing theme on OfflineActivity
- What is the source of traffic data for traffic plugin?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-plugins-android.