Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on onRadiusChanged in Circle component #328

Closed
cristiancedenogallego opened this issue Aug 18, 2016 · 6 comments
Closed

Error on onRadiusChanged in Circle component #328

cristiancedenogallego opened this issue Aug 18, 2016 · 6 comments

Comments

@cristiancedenogallego
Copy link

When set onRadiusChanged attribute in Circle component google maps throw an exception

<Circle
    clickable
    draggable
    editable
    center={coordinates}
    radius={this.state.radius}
    ref={circle => { this.circle = circle; }}
    onCenterChanged={this.onCenterChanged}
    onRadiusChanged={this.onRadiusChanged}
   options={{
     fillColor: '#f00',
     strokeColor: '#f00',
   }}
 />

Uncaught TypeError: Cannot read property 'apply' of undefined

@tomchentw
Copy link
Owner

Could you check if this still exists for 6.0.0?

6.0.0 is released on npm beta tag now. See the changelog here. We also have a new demo page. Feel free to try it:
https://tomchentw.github.io/react-google-maps/

@tomchentw
Copy link
Owner

Please refer to Getting Help section in the README (or #469).

@matheuspalmeir
Copy link

@crisys11 Did you solve this problem? I just need to get the new radius and center of a editable circle, after the user changed him, and i can't find a way. Is there any example in documentation? I didnt understand what is different in Released (6.0.0):

<Circle radius={this.state.radiusCircle} center={this.state.centerCircle} options={ { fillColor: "#ff0000", fillOpacity: 0.2, strokeColor: "#ff0000", strokeOpacity: 1, strokeWeight: 2, visible: this.state.circleVisible, editable: true, draggable: true } } onCenterChanged={this.handleCircleCenterChange} //Error onRadiusChanged={this.handleCircleRadiusChange} />

@JustFly1984
Copy link

@matheuspalmeir This library is unmaintained more than a year, please refer to new npm @react-google-maps/api

We have docs, examples and community at spectrum.

@naveensomanna
Copy link

onRadiusChanged it's not triggering can anyone help me out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants