For a project I am working on we want to extend the Geolocation's browse.kml.php file to include custom Icons and Groups. I have reprogrammed the file to do the icons and when it is fed into Google Maps, the display come out exactly like we want it. However in Omeka it still stays on the default pin icons.
After going through the map.js file tonight I totally get that the reason the plugin is not consuming the KML directly is that on the admin side Google API can not read the KML file as it is behind the Admin login. Instead you are consuming the KML file in Javascript and rendering it out with the map. A great approach except that it only will read 5 nodes in the KML file.
My very limited programming skills in Javascript is limiting my ability to see how to do one of the following to fix this issue:
Solution 1) Change the map.js file to always use the KML file on the public side. (i.e. http://www.webfluency.com/omeka/geolocation/map.kml). I realize this will break the display on the Admin side but for our current issue that is more acceptable than not being able to custom icon the map and the following issue of filtering the map based on icon.
OR
Solution 2) Have someone provide me with an example on how to extend the map.js programming so it can consume the additional nodes in the KML programming and display properly. If I can see how adding even one node works I can pretty much figure out how to do the others.
As always, your help is greatly appreciated!
Greg