meteor-google-maps-react-example icon indicating copy to clipboard operation
meteor-google-maps-react-example copied to clipboard

Where is API key?

Open dvperv opened this issue 8 years ago • 2 comments

It's not working. API complaints there is no key. How to pass it is absolutely not clear.

dvperv avatar May 10 '17 16:05 dvperv

Check the meteor google maps package documentation

dburles avatar May 10 '17 23:05 dburles

In case it helps anyone else, I replaced this function in "lib/GoogleMap.js":

componentDidMount() {
    const options = this.props.options || {};
    options.key = '<API_KEY_FROM_GOOGLE>';
    GoogleMaps.load(options);
    this.forceUpdate();
  }

mckinleymedia avatar Jul 29 '17 00:07 mckinleymedia