Skip to main content
100%

simple implementation of a google map using the react-google-map library

✓ Published0🌍 Public
CCKschneid
Last edited Dec 13, 2016
Created on Dec 13, 2016

This example shows a simple interactive map centered on a fixed coordinate, with a marker placed at that location. It demonstrates the core usage of the react-google-maps library by rendering a `GoogleMap` component inside a `GoogleMapLoader`, which attaches the map to a full-size container div. The map’s zoom is set to 15, and the `options` prop disables the street view and map type controls. Markers are rendered from an array passed via `this.props.markers`, in addition to a hardcoded marker at the given latitude and longitude, illustrating how to compose map elements with React props.

AI-generated description

Similar vizzes