Hello
I've a form with same code and i've a google map displayed with {mosmap ...}.
I'd want to insert Latitude and Longitude values with two values that i've calculated before (in the same form - $Lat, $Lon) as: {mosmap width='500'|height='400'|lat='".$Lat."'|lon='".$Lon ....
I don't know how can i store the two values and set them in the mosmap plugin.
Can anyone help me?
Thanks
Guido
I've a form with same code and i've a google map displayed with {mosmap ...}.
I'd want to insert Latitude and Longitude values with two values that i've calculated before (in the same form - $Lat, $Lon) as: {mosmap width='500'|height='400'|lat='".$Lat."'|lon='".$Lon ....
I don't know how can i store the two values and set them in the mosmap plugin.
Can anyone help me?
Thanks
Guido
Hi Guido,
If they are stored and you've got them back into the $form->data array then you should be able to use code like this in a Custom Element element in your form:
Bob
If they are stored and you've got them back into the $form->data array then you should be able to use code like this in a Custom Element element in your form:
<?php
echo "{mosmap width='500'|height='400'|lat='{$form->data['Lat']}'|lon='{$form->data['Lon']} ....";
?>
Bob
Thanks, It works fine.
Guido
Guido
This topic is locked and no more replies can be posted.