[Google Maps] Error: Unable to Get property 'setMap' of undefined or null reference

[Google Maps] Error: Unable to Get property 'setMap' of undefined or null reference

  
Forge Component
(14)
Published on 4 Oct by OutSystems Labs
14 votes
Published on 4 Oct by OutSystems Labs
I got an Exception occured in the client script.
Error: Unable to Get property 'setMap' of undefined or null reference.

I am removing all markers and then recreate others.
Hi Carlos,

I'm having the same error. Did you get any answers on this?

Hi
I have not received any feedback about it.

But, i was able to reduce the occurring of them by doing next:

Access to
http://apps.outsystems.com/GoogleMapsDemo/MultipleMarkers.aspx
and be sure that each of the addresses can be shown without problem. some of the error are related with this. If this test component cannot show pin address in map we get the error.

Also, I used coordinates longitude,latitude instead of full address, this way I assume is faster to locate the point.

But still. even when frequency of errors is reduced, error appears from while to while.

I am not sure if this is caused due amount of pins in maps. I have 12, but with 7 or 8 it works just fine.

Let me know if this approach works better for you.