|
|
Simple Map Plugin for FPPThis is a simple map plugin to geolocate one panorama. Here is a screenshot of the plugin:
You can download the plugin for free here. Here are the settings to install and configure it: 1. put the map.swf file on your server, in a specific folder, 2. in the FPP config xml file, add this line:
replacing "my folder" with your own path; for example:
3.add this xml node: <Umap> lat=48.8655 lng=-2.98605 loc_name = Bréhat (22) - France align = BM xoffset = 0 yoffset = 0 tooltip = Geolocation provider = GOOGLE maptype = hybrid mapzoom = 14 </Umap> YOU NEED to respect this order for the parameters, I didn’t get the time to code some security scripts if the parameters are not in this order. The first 2 parameters are for the geographic point (latitude and longitude). The next The parameter TL: top-left The parameters The parameter The parameter The parameter - GOOGLE: - YAHOO - MICROSOFT - OPENSTREETMAP The last parameter specifies the final zoom for the map, between 0 and 17, by default at 10. 4. add these two functions in the global node of the hotspots plugin, for those who wants to do others actions during map loading: load_map = '' close_map = '' 5. for those which need to move the icon, you can use the two xoffset and yoffset as this: loadMain = '
loadPano(panoName=images/pano,1000); onTransitionEnd=moveIcon(); ' moveIcon = ' 6. those who want to show/hide the button can do that with the function onStart = 'external.umap.visible = 0;loadPreview();'
loadPreview = ' pano.qualityStatic=low; loadPano(panoName=images/small/pano,300); onTransitionEnd=loadMain(); ' loadMain = ' loadPano(panoName=images/pano,1000); onTransitionEnd=movePano(); ' movePano = ' Some users report me that their map shows a blank rectangle during their tests. I will not develop more features for this plugin as another exists and it is more powerful; I invite users interested to have a look at it, it is GMap Widget For FPP, from Davx Medias |
re: Simple Map Plugin for FPP
Nice plugin Vincent, and a good explanation!
Cheers,
Patrick
Nice work you also included
Nice work

you also included the source files? Great
Thanks