Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 21. Juli 2022, 04:47

How to make input from textfield-plugin to map-plugin and add spot on map ?

Hi everyone.

I am new in krpano, I am trying to add textfeild on pano to be one input box the idea is to pass the values that enterd by user to my map-plugin in xml file in order to add spot on map. So, the input format is about coordinates latitude and longitude.

I found out on krpano forum this link: https://krpano.com/forum/wbb/index.php?p…ad&postID=52434 its working but when i still cannot deal with inputted value.

in my xmle file:

~

addplugin(input);
set(plugin[input].url, %BASEDIR%/textinput.js);

set(plugin[input].align, rightbottom);
set(plugin[input].x, 180);
set(plugin[input].y, 20);
set(plugin[input].width, 150);
set(plugin[input].height, 30);



set(plugin[input].onchanged, plugin[map].addstylespot(get(spot_pin_google)), get(text)[1], get(text)[2], 0, get(coordinate_spotstyle)));

~

Here in red colored parameters i wanted to be the entered values but should splitted to two values at first then pass it spot-map.

Any idea on how split the enterd value to two values and pass it spot as lat and lng ??

Thanks in advance gurus,

2

Dienstag, 14. März 2023, 11:10

Hi,

in krpano 1.21 textfields can be directly editable - here an example:
https://krpano.com/releases/1.21/viewer/…ld-editable.xml

And here for more information:
https://krpano.com/plugins/textfield/?version=121#editable

Best regards,
Klaus