1.2.2 • Published 2 years ago

react-gmaps-id v1.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React Gmaps Id

=== How To Use ===

npm install react-gmaps-id

=== Example Code ===

import ReactGmapsId from "react-gmaps-id";

export default function App() {

  /* Get Data After Drag Marker */
  const onDrag = (val) => {
    console.log(val); // Get all data
    console.log(val[0].geometry.location.toJSON()); // Get LatLng 
  };

  return (
    <ReactGmapsId
      name="test" // Unique key of ReactGmapsId
      height="200px" // Height layout of maps
      width="200px" // Width layout of maps
      zoom="10" // Zoom maps
      defaultMap="Dapur Rumaisha" // Set default center of maps
      onDrag={onDrag} // Callback function Drag marker
      onError={(e) => {console.log(e)}} // Callback error function
      keyGoogle="GOOGLE_KEY" // Google key
    />
  );
}
1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago