@yarrow-uz/yarrow-map-web-sdk
v1.0.47
Published
Yarrow Map Web SDK for embedding interactive maps and routing in web apps.
Readme
@yarrow-uz/yarrow-map-web-sdk
A JavaScript SDK for embedding interactive maps and routing in web applications.
Features
- Interactive map embedding with custom styling
- Markers and annotations
- Route planning and visualization
- Search functionality
- Navigation controls
- Offline tile caching
- React components support
Installation
npm install @yarrow-uz/yarrow-map-web-sdkUsage
import { YarrowMap } from '@yarrow-uz/yarrow-map-web-sdk';
const map = new YarrowMap({
container: 'map-container',
apiKey: 'your-api-key',
style: 'your-style-url',
center: [55.3, 25.3],
zoom: 12,
});
map.on('load', () => {
console.log('Map loaded!');
});React
import { YarrowMapView } from '@yarrow-uz/yarrow-map-web-sdk/react';
function App() {
return (
<YarrowMapView
apiKey="your-api-key"
style="your-style-url"
center={[55.3, 25.3]}
zoom={12}
/>
);
}Documentation
Full documentation available at https://sdk.yarrow.uz/web-sdk
