How can I Refresh Google Map WebViewer When I change the Coordinates?

save

I registered the coordinates and they actually appear in their textboxes

But where are the Select Item From List blocks to reload the GUI from that awfully long list?

Your button11 click event is storing values to the tinydb, not retrieving them.

Third time lucky ?

button 11 save data in tinnydb tag = Clinet name

When I select client name from spinner list

All data for each client is restored to its place

where ?
when ?

I can only guess it is after you call the google map in the webviewer, which will be before you have set the values in the textboxes...

No I moved the block to the top just so it would be clear when I included it here in the post, but in fact I showed the coordinates first before the map block.

Well that wasted 9 posts of our time didn't it, and your blocks show you directly adding the selected list items instead of the textboxes

Imagine counting 91 items down in a list.

What torture!

Time to learn how to store a dictionary in TinyDB.

With keys and tags you don't have to worry about being one off and ruining the count.

I haven't studied dictionaries yet, but it's in the plan

Sorry for the misunderstanding

Just ran a quick test and it works OK for me, suggest you check the values being applied

THE SAME PROBLEM
Could it be that I put the WebViewer inside Arrangement to be displayed with the Custom Dialog extension?

Why not test without the custom dialog. Does it work then ?

There could be a timing issue?
Try placing the webviewer call block in a clock timer which is called after you set your 91 items to textboxes

instead of
GMwebview

com/m aps/@ try com/maps/@

The link is actually as follows
com/maps/@LAT,LONG,.....

Finally, after a lot of attempts, trouble and our wasted time

I have discovered the cause of the problem

The problem is not with the blocks, but with the coordinates that I copy from Google Map and paste them into the coordinates textbox.

The coordinates of any point ( Marker ) in Google Map. There is a blank space after the comma that must be removed :grinning: :joy:

Is there a way to automatically remove this space from the coordinate text ?

Yes , I added this block to remove the distance between the coordinates, if any, and then separate the longitude and latitude

segment=space
replacement =empty

correct

Is there a way to automatically transfer google map coordinate to the app textbox when the user mark any location ?

I Don't Know :thinking:

image

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.