I would try: replacing myMap=parent.parent.mapFrame; with myMap=parent.parent.whateverthenameofthefameyoucalledit.GetMapFrame(); -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Script-not-working-tp5152607p5153097.html Sent from the MapGuide Users mailing list archive at Nabble.com.