Yaina.TheMap={}; // Yaina.RoadTrip2010Map, Yaina.TrackMap, etc...

Yaina.PhotoTrackMap = OpenLayers.Class(Yaina.theMap, {
	poi: null,
	gpxfile: null,

	initialize: function(args) {
		Yaina.TheMap.prototype.initialize.apply(this, arguments);
		this.gpxfile=args.photoLocationFile;
		var opts = OpenLayers.Util.getParameters();
		if (opts.poi) this.poi = opts.poi;
	},

	setArgs: function(args) {
		Yaina.TheMap.prototype.setArgs.apply(this, arguments);
		if (args.poi) this.poi = args.poi;
	},

	createMap: function() {
		var map = Yaina.TheMap.prototype.createMap.apply(this);
		layerPhotos = new Yaina.Layer.PhotoCollection("Photos", this.gpxfile, this.poi);
		map.addLayer(layerPhotos);
		return map;
	},

	CLASS_NAME: "Yaina.PhotoTrackMap"
});
