Dynamic positioning of a group via Javascript

Hello all,

I’m using the google maps extension. I want the position of a group to adjust dynamically based on the marker which is clicked. I’m trying to use the below javascript code which gets triggered when a marker on the map is clicked (I’m using the toolbox plugin within the workflow section). Unfortunately it doesn’t work and I don’t understand why, can you guys help me?

Best,
Andreas

var element = properties.param1;
var elementStyle = element.style;

elementStyle.position = “absolute”;
elementStyle.left = clickX + ‘px’;
elementStyle.top = clickY + ‘px’;

This topic was automatically closed after 70 days. New replies are no longer allowed.