rafaelgp
02-06-2009, 04:59 PM
I have a business directory gorillaindex (http://www.gorillaindex.co.uk) which has 17 categories. For each category there is a map showing some markers that are feeded by a kml file (at the moment all the maps are feeded by the same kml file).
The point is that all the 17 maps are basically the same, with the only exception that each map loads a different kml file (arts.kml, restaurants.kml, etc...).
So I was wondering if it is possible to load a specific kml file depending of the title tag of the webpage. For example.
private function addMarkers(event:MapEvent):void
{
var pageTitle (*get somehow get the current HTML Title tag*);
var kmlmarkers:KMLLayer = new KMLLayer();
umap.addOverlay(kmlmarkers);
kmlmarkers.load(+pageTitle+".kml");
}
And I will name the the kml files with the corresponding title.
I am sure there are easier options to achieve what I want, but because the directory is built using php software I have some limitations. For example, I cannot put anything on www.gorillaindex.co.uk/arts because otherwise the webpage will not load.
Thanks for helping me in advance.
The point is that all the 17 maps are basically the same, with the only exception that each map loads a different kml file (arts.kml, restaurants.kml, etc...).
So I was wondering if it is possible to load a specific kml file depending of the title tag of the webpage. For example.
private function addMarkers(event:MapEvent):void
{
var pageTitle (*get somehow get the current HTML Title tag*);
var kmlmarkers:KMLLayer = new KMLLayer();
umap.addOverlay(kmlmarkers);
kmlmarkers.load(+pageTitle+".kml");
}
And I will name the the kml files with the corresponding title.
I am sure there are easier options to achieve what I want, but because the directory is built using php software I have some limitations. For example, I cannot put anything on www.gorillaindex.co.uk/arts because otherwise the webpage will not load.
Thanks for helping me in advance.