Wappler Version : 3.7.7
Operating System : Windows
Server Model: NodeJS
Database Type: MySQL
Hosting Type: Docker
Expected behavior
Pins should be dropped on the locations corresponding to the address associated with each pin
Actual behavior
All pins are dropped in the center point of map
How to reproduce
On app load, I add the values 1 and 3 to the array ‘arr1’
body is=“dmx-app” id=“test” dmx-on:load=“run([{run:{action:
arr1.add(1)
}},{run:{action:arr1.add(3)
}}])”
Then I filter the ServerConnect’s response using ‘arr1’ and feed the result into the dynamic markers’ fields
dmx-google-maps id=“maps1” dmx-bind:markers=“locations.data.query.where(
row_num
, arr1.items, ‘inArray’)” marker-address=“address” marker-label=“address”
This is what I get
Interestingly, marker-label is picking up the right value of address, but marker-address is not
If I hardcode ‘arr1’ (instead of setting its value on app load). It works correctly. It also works if I used [1,3] instead of array.items as follows:
dmx-google-maps id=“maps1” dmx-bind:markers=“locations.data.query.where(
row_num
, [1,3], ‘inArray’)” marker-address=“address” marker-label=“address”
I tried forcing a map refresh. It doesn’t change anything.
I also tried inserting more values into ‘arr1’ after. An extra pin gets generated, but all the pins are in the centre of the map.
Thanks!