Skip to content

Instantly share code, notes, and snippets.

@LuffyAnshul
Created April 1, 2021 17:24
Show Gist options
  • Save LuffyAnshul/4047dde7f495abb3ed6c9c6342dfe4e8 to your computer and use it in GitHub Desktop.
Save LuffyAnshul/4047dde7f495abb3ed6c9c6342dfe4e8 to your computer and use it in GitHub Desktop.
WildFire Tracker Location Marker JS
import { Icon } from '@iconify/react';
import locationIcon from '@iconify/icons-mdi/fire-alert';
const LocationMarker = ({ lat, lng, onClick }) => {
return (
<div className="location-marker" onClick={onClick}>
<Icon icon={locationIcon} className="location-icon" />
</div>
)
}
export default LocationMarker;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment