Hello all. Hope this finds a solution from someone. I’m integrating Google Maps Platform with RS, and so far I’m doing good. That was 3 days ago when I started to face a problem when updating a data slot with the coordinates I have. As you can see in the print (console).
I thought this would be very simple, but for some reason I’m not getting there. So, what I get if I leave the RS “appActions.updateDataSlot” line not commented is an error “Uncaught TypeError: Cannot read property ‘appActions’ of undefined” ?!
Here’s the script that works fine without the “appActions.updateDataSlot” line.
Just to get in touch with this GM API. This is a listener that gets the latitude and longitude after dragging a marker on the map.
//
google.maps.event.addListener(marker, ‘dragend’, function (event) {
//do something
let markerLat = this.getPosition().lat();
let markerLon = this.getPosition().lng();
console.log(markerLat,markerLon);
//this.props.appActions.updateDataSlot('ds_SlotLat', markerLat)
})
I appreciate your help