Orientação gerada a partir de informações públicas. Apenas para referência.
yandex_mapkit_lite é um fork leve do pacote yandex_mapkit, versão 3.4.0, projetado para integrar mapas da Yandex em aplicações Flutter para Android e iOS. Ele fornece funcionalidades essenciais de mapa com menor sobrecarga, sendo ideal para aplicativos que exigem renderização de mapas sem dependências pesadas. O pacote mantém funcionalidades principais como exibição de mapas, marcadores e interações básicas, enquanto otimiza desempenho e tamanho do pacote. Desenvolvido e mantido pela surf.ru, oferece uma alternativa simplificada para desenvolvedores que buscam integração eficiente de mapas.
Casos de uso
Integrando mapas do Yandex em aplicativos móveis
Exibindo dados baseados em localização
Criando sobreposições de mapa
Soluções leves de mapa
Interfaces de navegação simples
Principais recursos
Tamanho de pacote reduzido
Dependências mínimas
Suporte para Android e iOS
Renderização de mapas e marcadores
Mantém a funcionalidade central do mapa Yandex
Indicado para
Desenvolvedores que precisam de uma solução leve de mapa
Projetos com restrições rígidas de tamanho
Aplicativos que usam exclusivamente o Yandex Maps
Aplicativos Flutter destinados ao Android e iOS
Equipes priorizando desempenho e simplicidade
Considerações
Limitado ao ecossistema do Yandex Maps
Nenhuma rotação avançada ou geocodificação
O Fork pode atrasar em relação às atualizações do pacote original
Requer gerenciamento manual de dependências
Não adequado para necessidades complexas de mapeamento
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
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.