Ionic 1; ERROR maps of undefined

I’m using
Ionic 1.5.0
Cordova 6.5.0
When I created the map with the google maps plugin, I got this error by the console, debugging it, someone could help me, thank you very much
maps of undefined e instalado el plugin plugin add cordova-plugin-googlemaps
what could I need I tried to change the version but it does not work

map =,{
‘camera’: {
‘latLng’: setPosition($stateParams.varlat,$stateParams.varlng),
‘zoom’: 18