Its not a issue actually, Its a doubt. I am trying to use radius_change event of Circle without success could u display how to use it?!
I HAVE THE FOLLOWING HTML `
<ngui-map *ngIf="hasCenter()" center="{{center}}" (mapReady$)="onMapReady($event)" zoom="14" class="m-1" >
<marker [position]="center" (click)="markerInfo($event.target)"></marker>
<circle (radius_change)="radiusChange($event)" center="{{center}}" [strokeOpacity]="0.9" [strokeWeight]="1" [editable]="true"
radius="500" draggable="false"></circle>
<info-window id="my_location">Encontra-se aqui!</info-window>
ERROR
onCircleInit(value: Circle) { this._circle = value; }
get center(): any { return [this._center.latitude, this._center.longitude]; }
hasCenter(): boolean { return !isNullOrUndefined(this._center); }
radiusChange(event: any) { console.log('ALSLDLSADL'); } ` And the radius_change event doesnt work
try this (radius_change)="myevent($event)"
Tried but still doesnt work!?!
https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
I don't see radius_change is an official event. Please use one of the official event. i.e. bounds_changed
Oh.. you are using circle. Then, it should be radius_changed based on https://developers.google.com/maps/documentation/javascript/3.exp/reference#Circle
Hi I am facing the same issue.
https://plnkr.co/edit/2mgFh3MkwH5Q0aA8T7F8?p=preview
If you open de console you will see that onCircleInit event is logged. The circle is editable however everytime you resize the circle the radius_changed event is not fired.
Thanks in advance, Pablo
@pablo-gonzalez can you try with (radiusChanged) instead
It worked!
https://developers.google.com/maps/documentation/javascript/3.exp/reference?#Circle
According to Google documentation the event is radius_changed. Are you using a different event name in your component or google doc is wrong?
we use camel-case for event name if I'm not wrong, I'll check it later.
Same for center_changed.
we use camel-case for event name if I'm not wrong, I'll check it later.
If that is the case, you should consider updating the documentation of this great component!
Thank you very much.