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

access MLNMapView from within dart, implement programmatic controls #172

Merged
merged 30 commits into from
Dec 11, 2024

Conversation

josxha
Copy link
Owner

@josxha josxha commented Dec 8, 2024

Description

Just as on Android, a MapLibreRegistry class gets used to access the MLNMapView instance from inside dart. Programmatic control is handled using pigeon method channels and objective c ffi.
Applying paint and layout properties is not part of this pull request.

The Swift header file is generated with

cd maplibre_ios/ios/maplibre_ios/Sources/maplibre_ios/
swiftc -c MapLibreRegistry.swift -module-name maplibre_ios -emit-objc-header-path MapLibreRegistry.h -emit-library -o libmaplibreios.dylib

Resources

@josxha josxha changed the base branch from main to ios December 8, 2024 18:38
@josxha josxha self-assigned this Dec 8, 2024
@josxha josxha added the ios iOS specific issue label Dec 8, 2024
@josxha josxha added this to the iOS milestone Dec 8, 2024
@josxha josxha mentioned this pull request Dec 8, 2024
17 tasks
Copy link

cloudflare-workers-and-pages bot commented Dec 8, 2024

Deploying flutter-maplibre with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a844da
Status:⚡️  Build in progress...

View logs

@josxha josxha changed the title access MLNMapView from within dart access MLNMapView from within dart, implement programmatic controls Dec 8, 2024
@josxha josxha merged commit 8826c86 into ios Dec 11, 2024
13 of 20 checks passed
@josxha josxha deleted the ios-map-registry branch December 11, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios iOS specific issue
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant