Phoca Maps does not obey zoom level with KML file
Posted: 29 Jun 2014, 16:28
I have a fairly long (~100kb) kml file with polygons from around the world. Without the KML file loaded, the map plugin nicely shows me the whole world. However, as soon as I tell the component to display the KML, the zoom level is ignored, and the map zooms way out, showing the world several times. see e.g. http://draft.marinehotspots.org/hotspot ... s-map.html (test/test, if asked).
No matter what zoom level I set it on, this happens. I have set it to start at lat/long 0/0 (equator, Greenwich) within Phoca, and tried zoom levels from 0 to 14. This is on the latest version of Joomla 3.x with the latest Phoca Maps plugin and component.
Unfortunately, the KML is too long to paste here, due to character limits (it's about 100kb of plain text!), and I can't see any way of attaching the file to this post. I'm wary of adding another link in case this post is seen as "spammy" by the protection script.
I can manually set the zoom level once it loads (going two levels up from the bottom seems about right), but this is a bit clunky and looks (very) ugly on load.
I have my suspicions that this occurs because the polygons extend over the "edges" of the map (what with the globe being spherical and all), but I can't seem to figure out any way of "bounding" the view within KML or PhocaMaps.
Any ideas? Many thanks!
No matter what zoom level I set it on, this happens. I have set it to start at lat/long 0/0 (equator, Greenwich) within Phoca, and tried zoom levels from 0 to 14. This is on the latest version of Joomla 3.x with the latest Phoca Maps plugin and component.
Unfortunately, the KML is too long to paste here, due to character limits (it's about 100kb of plain text!), and I can't see any way of attaching the file to this post. I'm wary of adding another link in case this post is seen as "spammy" by the protection script.
I can manually set the zoom level once it loads (going two levels up from the bottom seems about right), but this is a bit clunky and looks (very) ugly on load.
I have my suspicions that this occurs because the polygons extend over the "edges" of the map (what with the globe being spherical and all), but I can't seem to figure out any way of "bounding" the view within KML or PhocaMaps.
Any ideas? Many thanks!