Dimitris Monastiriotis
Posts: 0
Joined: Sat May 25, 2013 11:22 am

is there a way to set the default marker of the google map component to invisible using js?

I have tried using Appery('marker_name').attr('rendered', false);

but that does not do it

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

is there a way to set the default marker of the google map component to invisible using js?

Hello! No, there is no way to do that using JS. You can only uncheck it in builder.

Dimitris Monastiriotis
Posts: 0
Joined: Sat May 25, 2013 11:22 am

is there a way to set the default marker of the google map component to invisible using js?

Yes you can, if you find the list's name that is produced automatically to keep the marker the code below renders it invisible.

setAttribute_('j_74', 'showLocationMarker', 'false');
$('[id=j_74]').refresh();

well chaffed about it it bugged me for ages. So this is the answer if anyone was looking for it

Return to “Issues”