You are not logged in.

Search results

Search results 1-19 of 19.

Sunday, April 24th 2022, 3:51pm

Author: gius

radar plugin on osm maps as krpano maps-viewer

Hi all, I am not an expert in programming at all. Some time ago I found a way to use osm maps on krpano by myself. Now I see it is possible to do that using krpano as maps viewer inside krpano. I had a look at this example https://krpano.com/viewsource.html?relea…s/maps/maps.xml on krpano site. I am wondering how to add a radar plugin on the active hotspots on a project like the above example. Thank you for any help and advice. Best regards, Giuseppe

Monday, November 4th 2019, 1:15am

Author: gius

adding lat ,lng and heading to scenes

Solved by trying. The heading attribute in <scene> is set by GPSImgDirection in EXIF data: it works when settting GPSImgDirection in degree with decimal. But the view.hlookat is also set as the heading which I do not want. I would like to have view.hlookat at 0.0, i.e. where the stirched pano is centered. Then I will use heading (from gps device when taking the picture) to set the radar and the compass. I set prealignheading=false in config file but that does not seem to work. Can someone sugges...

Saturday, November 2nd 2019, 9:40pm

Author: gius

adding lat ,lng and heading to scenes

Sorry, I did not have images with GPS data and I did not realised that Krpano stores lat and lng on <scene> where I can access for custom actions which is what I need. I put GPS data on images via Exiftool. I can not find a tag for HEADING. I tried GPSImgDirection and GPSDestBearing but the heading attribute on <scene> in the tour.xml remains unchanged. Is the heading attribute in <scene> set from any EXIF data? which? Thank you. Giuseppe

Friday, November 1st 2019, 5:42pm

Author: gius

adding lat ,lng and heading to scenes

Hi, I would like to add lat, lng and heading attributes to each scenes of a tour consisting of many panos. I can have this data either: 1) on metadata of each jpeg pano 2) or on a separate file or on <data> in tour.xml I would like to do that not by manually adding the attributes. I suppose I have 1) to change something in config file (preferred) and/or 2) coding some action on tour.xml but I do not know how. Any ideas, hints, suggestions on how to proceed? Thank you very much for any help. Best...

Friday, October 25th 2019, 6:50pm

Author: gius

maskchildren on plugin map and spot

hello, I have a plugin map container with osm map: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <plugin name="map" devices="html5" type="container" keep="true" url="my_map_plugin.js" align="lefttop" width="270" height="370" scalechildren="true" maskchildren="true" > <layer name="activespot" parent="map" x="" y="" keep="true" url="img.png" align="lefttop" edge="center" zorder="1" scale.mobile="2" /> </plugin> The activespot changes x, y when dragging/moving the map according to a function o...

Sunday, October 20th 2019, 8:13pm

Author: gius

Compass layer

Piotr, It works: thank you very much! Best regards, Giuseppe

Saturday, October 19th 2019, 4:24pm

Author: gius

Compass layer

HI, I have a compass copied from krpano example with minor mods: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 <!-- compass background layer --> <layer name="compass1" url="compass_bg.png" align="rightbottom" x="10" y="10" keep="true" children="false" scalechildren="true" destscale="1.0" onclick="switch(destscale,1.0,0.5);tween(scale,get(destscale));"> <!-- compass plate --> <layer name="compass1_plate" url="buscard.png" align="center" zorder="1" /> <!-- compass pointer...

Saturday, September 28th 2019, 9:25pm

Author: gius

how to access a function in js plugin from xml

Klaus, thank you very much: I will try to implement. Previously I tried: krpano.events.onnewscene = function(){ .. here map.latLngToContainerPoint() a function from Leaflet which converts geographical coods to x.y coords and code to set x, y coords for an activespot/layer in in the xml .... } The above is in the plugin.js file and It works, but perhaps it is not a clean code, so I will change according to your coding. I would prefer to do the following in xml code : <scene name="my_ scene" onsta...

Saturday, September 28th 2019, 1:28pm

Author: gius

how to access a function in js plugin from xml

Thank you very much for explanation! Not sure to understand correctly: <action name="newsceneaction">jsget(returnedValue, 'someFunction()');trace('value: ', get(returnedValue));</action> In my case someFunction() would be a function from the js plugin, i.e. the function map.latLngToContainerPoint() from leaflet.js: it converts latlng geographical coords to x,y coords in the map container. Just to explain, I have a testing tour with 3 images . In the xml file I have a plugin/layer linked with a f...

Friday, September 27th 2019, 5:06pm

Author: gius

how to access a function in js plugin from xml

Thank you very much. I wil give it a try after some time to figure it out what your code means: I am a complete beginner in any coding. You say to use your code in a action of tipe="javascript": as far as I know jsget, jscall and js can be used in "normal" krpano actions.....

Thursday, September 26th 2019, 7:51pm

Author: gius

how to access a function in js plugin from xml

Hi, I am asking the same question on reverse: how to call a js function on a js plugin from a Krpano event (e.g. onnewscene)? I did this on the plugin.js: krpano.events[onnewscene] = function() {myFunction()}; function myFunction() { //js code, i.e. a function from Leaflet krpano.set(//setting an attribute on a krpano layer according to a value from the previous function ...) } but it does not work. Alternatively I would like to do on krpano (xml file): <scene name=myscene" onstart="my_Function(...

Tuesday, September 24th 2019, 6:38pm

Author: gius

how to access a function in js plugin from xml

Hi, I have a custom map plugin and I would like to access/call a js function, actually a function from Leaflet.js library, in the plugin. I would like to call this function from the xml file, i.e. from a krpano action called by an event, "onstart" a new scene. Can anyone tell me how to do that? Many thanks for help, Giuseppe

Thursday, August 8th 2019, 3:03pm

Author: gius

accessing xml from plugin.js (javascript file)

Hi, I am reading documentation but I cannot find how to do the following. I have in the xml file: <plugin name="myplugin" devices="html5" type="container" ........ url="myplugin.js" > <layer name="mylayer" .................. /> </plugin> Would it be possible to add attributes and set value to "mylayer" from "myplugin.js"? How? Thank you. Regards, Giuseppe

Thursday, July 25th 2019, 2:08pm

Author: gius

OSM plugin trial and errors

Thank you very much. In the meanwhile any suggestions from anyone about what is wrong in my code would be very helpful. I would like to use OSM and, in any case, I would like to know the way it works for further customisation and/or to use other free map resources.

Thursday, July 25th 2019, 11:52am

Author: gius

OSM plugin trial and errors

Hi, I am trying to build an OSM plugin: no experience in jS, xml etc.... Here what I achieved copying and pasting here and there..: http://www.lingua.it/giropano/index.html Two (main) problems: 1) the map is not centered as expected and does not zoom properly: when zooming it seems the center is moving.... 2) the text in popup does not desplay, thouth when downloading leaflet,js and leaflet.css directly on the folder it works. Actually I am not interested in popups but...just to understand why.....

Tuesday, July 23rd 2019, 12:32am

Author: gius

image as plugin

Thank you for explaination. I was just trying to insert a floorplan in a pano. I can do that using an image layer (url="myfloorplan.jpg"). I tried also to use a plugin (url="myplugin.js"). I used the plugin example at https://krpano.com/docu/plugininterface/#top trying to modify: dropping the action and other stuff not related, I presume, with the insertion of the image. I used: document.createElement("img") and document.innerHTML......... but nothing happens. Maybe the above is a nonsense ... T...

Monday, July 22nd 2019, 7:25pm

Author: gius

image as plugin

Hi, I am trying to learn with the trial version. I see you can "insert" an image in a pano by way of a layer (url="image"). I am wondering if it is possible to do that by a file.js, like the one shown in the plugin interface example (i.e. url="file.js" in the xml layer). Thank you for any help. Regards, Giuseppe

Thursday, July 4th 2019, 9:55am

Author: gius

OSM plugin

Hi, I would like to use OSM maps in VT. The discontinued (krpano based) Panotour Giga by Kolor had this possibility. Anyone could give any hints on how to build such a plugin or any programmers in the forum could write the code to sell? Thank you very much for suggestions and help. kind regards, Giuseppe

Tuesday, May 29th 2018, 12:59pm

Author: gius

VT like street view

Hi, I am new to the forum and a beginner in Krpano. I would like to to do some Vt like "streetview". For example: I have 100 geolocated panos (pano1, ........, pano100) to link in a VT. Here is my question hoping someone can help and give suggestions. Is it possible to build the VT with an "automathic" process ( i.e. by "putting" all the panos together in krpano ) this way: each pano has two hotspots (one for the next pano and one for the previous pano); each pano has a map with the hotspots of ...