Im about to create a flat gigapixel-panorama which should contain more than 1000 hotspots.
My todays load-test with 1000 hotspots has shown, that things are getting pretty slow.
My idea is the following:
i want to show/draw only the hotspots which are in the viewable section of my panorama and on a certain zoom-level. the hotspots a saved in a database. when i reach the certain zoom-level, i just want to load the hotspots for this area, write them into a xml file and include them dynamically. when i start panning, the hotspots for the new view area should be loaded by the way i described - the old ones should be deleted before.
are there functions where i can identify the borders of my actual view area? can i load xml files dynamically without reload the whole site?
thanks in advance for your ideas,