Hi, I am a bit stumped - I would like to use the myMap.zoom(1 / 16, myGraphicMarker) I saw Robert S. post in another thread.
But...
var myGraphicMarker:Graphic = new Graphic(new WebMercatorMapPoint(longitude, latitude),
new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_DIAMOND, 22, 0x009933));
myGraphicsLayer.add(myGraphicMarker);
myGraphicsLayer.refresh();
myMap.zoom(1 / 16, myGraphicMarker);
when I run that, Flex tells me I have an error 1067: Implicit coercison of :Graphic to unrelated type: MapPoint (truncated error message). I understand what a coercion problem is, but I am curious why MyGraphicMarker is not recognized as a MapPoint. Is it because I am declaring a WebMercatorMapPoint?
Thanks, Tom