1.0.8 • Published 4 months ago

oz-map v1.0.8

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

react map module

install

install using npm install oz-map

usage

in a react app, use the Map components:

import { Map } from "oz-map";

let mapRef = React.createRef()

return <Map ref={mapRef}
    view={{
        projection: 'EPSG:3857',
        center: [4000000, 4700000],
        zoom: 8,
    }}
    handleInfo={(event) => {

        alert(event.feature.getGeometry().getCoordinates());
    }}
/>

or

let mapRef2 = React.createRef()

return <Map id="map2" ref={mapRef2} />

css

#map {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
1.0.8

4 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.1.0

5 months ago

0.2.2

5 months ago

0.2.1

6 months ago

0.2.0

6 months ago