Closed anis-18 closed 1 year ago
setZoom
setCenter
fitMarkers
mapStyle
https://github.com/volga-volga/react-native-yamap/issues/185
- You can use YamapView methods to zoom map.
setZoom
- You can set map center with any coordinates. For example you can get current user location.
setCenter
- You can zoom map to fit all given points. Use this method to fit polyline route.
fitMarkers
- I don't understand bus icon. Probably it's mean hide transit layer. To hide map layer you can use prop
mapStyle
Скрыть оригинальные остановки #185
Should i get a ref of a the YaMap to access methods ? and what's the ref type in typescript ?
- You can use YamapView methods to zoom map.
setZoom
- You can set map center with any coordinates. For example you can get current user location.
setCenter
- You can zoom map to fit all given points. Use this method to fit polyline route.
fitMarkers
- I don't understand bus icon. Probably it's mean hide transit layer. To hide map layer you can use prop
mapStyle
Скрыть оригинальные остановки #185Should i get a ref of a the YaMap to access methods ? and what's the ref type in typescript ?
This answer is for future users:
Yes, you should get a ref of a the YaMap to access methods and typescript type for useRef is YaMap.
import YaMap from 'react-native-yamap';
const mapRef = useRef<YaMap>(null);
<YaMap ref={mapRef}>
...
</YaMap>
My question is , is that design (zoom buttons , and other buttons) with the possibility of seeing buses Moving in the card (data from our backend ) with this look or design with this library ? And which difficulties or issues should i take in considération when implementing such module ?