Closed ch3rn1k closed 3 years ago
@ch3rn1k hello! Unfortunately there is no quick way to use RemoteObjectManager
import "./styles.css";
import { YMaps, Map } from "react-yandex-maps";
export default function App() {
const mapState = {
center: [55.739625, 37.5412],
zoom: 12
};
const rOM = (ymaps) => {
// you can use it in this way
console.log(ymaps.RemoteObjectManager);
};
return (
<div className="App">
<YMaps>
<Map
modules={["RemoteObjectManager"]}
state={mapState}
onLoad={addRoute}
></Map>
</YMaps>
</div>
);
}
Ah, okay, thanks!
Hello, is there any simple way to use RemoteObjectManager from YMaps API? Thanks for reply!