yandex_mapkit_lite는 버전 3.4.0의 yandex_mapkit 패키지의 가벼운 포크로, Android 및 iOS에서 Flutter 애플리케이션에 야후 지도를 통합하기 위해 설계되었습니다. 중량 감소된 오버헤드와 함께 핵심적인 지도 기능을 제공하여, 무거운 종속성 없이 지도 렌더링이 필요한 앱에 이상적입니다. 지도 표시, 마커, 기본 상호작용과 같은 주요 기능을 유지하면서 성능과 번들 크기를 최적화했습니다. surf.ru에서 개발 및 유지보수되며, 효율적인 지도 통합을 원하는 개발자에게 간결한 대안을 제공합니다.
사용 사례
모바일 앱에 Yandex 지도 통합
위치 기반 데이터 표시
지도 오버레이 만들기
경량 지도 솔루션
간단한 탐색 인터페이스
주요 기능
패키지 크기 축소
최소 종속성
Android 및 iOS 지원
지도 렌더링 및 마커
핵심 요andex 지도 기능을 유지합니다
적합한 대상
경량 지도 솔루션을 필요로 하는 개발자
엄격한 크기 제약이 있는 프로젝트
Yandex Maps를 전용으로 사용하는 앱
Android 및 iOS를 대상으로 하는 Flutter 앱
성능과 단순성을 우선시하는 팀
고려 사항
야н덱스 지도 생태계에 제한됨
고급 라우팅 또는 지오코딩 없음
포크는 원본 패키지 업데이트에 뒤처질 수 있습니다
수동 종속성 관리가 필요합니다
복잡한 매핑 요구 사항에 적합하지 않습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Yandex Mapkit Light
Fork of yandex_mapkit library, but lightweight and more appropriate for the majority of the apps.
:earth_africa: Map overview - enables to view the map of the world, with which user can interact with any convenient way, usually in order to demonstrate the location of some place
:house: Custom map objects - enables for developers to add custom map objects in order to indicate some place on the map
:video_game: Convenient map controls - there is an API for straight-to-point map controls through the code - from zooming and moving to limiting user scroll and controlling the speed
:leaves: App bundle size reduction - noticeable app bundle size reduction comparing to projects with original package
:sparkles: Recommended for use if you don't need anything but basic map
Usage
Generate your API Key
Before you can use MapKit SDK in your application, you need the API key.
Specify your API key and locale in your custom application class. If you don't have one the you can create it like so
android/app/src/main/.../MainApplication.java
import android.app.Application;
import com.yandex.mapkit.MapKitFactory;
public class MainApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
MapKitFactory.setLocale("YOUR_LOCALE"); // Your preferred language. Not required, defaults to system language
MapKitFactory.setApiKey("YOUR_API_KEY"); // Your generated API key
}
}
android/app/src/main/.../MainApplication.kt
import android.app.Application
import com.yandex.mapkit.MapKitFactory
class MainApplication: Application() {
override fun onCreate() {
super.onCreate()
MapKitFactory.setLocale("YOUR_LOCALE") // Your preferred language. Not required, defaults to system language
MapKitFactory.setApiKey("YOUR_API_KEY") // Your generated API key
}
}
In your android/app/src/main/AndroidManifest.xml Add necessary permissions:
If your app needs functionality mentioned upper, that is not supported in lite version, consider using full version.
Issues
Minimal versions
There is OS version and platform restrictions for this package. The table for supported platforms and versions of their OS is presented lower:
Android
iOS
Support
SDK 21+
iOS 12+
Localizations
Mapkit can be used with one language only at the same time.
Due to native constraints after the application is launched language can't be changed.
Android
Example
Example project is soon to be refactored.
Hybrid Composition
By default android views are rendered using Hybrid Composition. In order to render the YandexMap widget on Android using Virtual Display (old composition), set [AndroidYandexMap.useAndroidViewSurface] to false before using YandexMap widget.
AndroidYandexMap.useAndroidViewSurface = false;
Terms of use
Disclaimer: This project uses Yandex Mapkit which belongs to Yandex. When using Mapkit refer to these terms of use.
To report your issues, submit them directly in the Issues section.
If you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our contribution guide first and send us your pull request.
Your PRs are always welcome.
How to reach us
Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.