I've finally worked out how to do this, so thought I'd share how I did
it:
When creating the MapType for the custom layer, there is an option to
set a link colour within the MapTypeOptions. You do have to make the
copyright a link for this to work (we link it to the terms &
conditions). It also changes the colour of the link to the default
Google Terms as well. This is the class I used:
package com.view.components.CustomMap
{
import com.google.maps.Color;
import com.google.maps.MapType;
import com.google.maps.MapTypeOptions;
import com.google.maps.interfaces.IProjection;
public class MyMapType extends MapType
{
public function MyMapType(mercator:IProjection,
tileServer:String)
{
var tileLayers:Array = new Array();
var tl:MyMapTileLayer = new MyMapTileLayer(tileServer);
tileLayers.push(tl);
var mto:MapTypeOptions = new MapTypeOptions({
alt: "Map",
errorMessage: "Could not load tile",
maxResolution: 18,
minResolution: 1,
shortName: "VM",
tileSize: 256,
linkColor: Color.GRAY11
});
super(tileLayers, mercator, " Map", mto);
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en.