Well, Pam
I was trying to do the same as the javascript API which works
perfectly. I tried your simple overlay but it doesn't like a map
service. The big problem is that i can't follow the Flex logic yet so
I'm trying things and hope they work. Below you'll see the javascript:

var gmap = null;
        function initialize() {

        gmap = new GMap2(document.getElementById("gmap"));
        var centerat = new GLatLng(0, 0);

        gmap.addControl(new GLargeMapControl());
        gmap.addControl(new GMapTypeControl());
        gmap.setCenter(new GLatLng(33.212, -87.541), 14);
        gmap.enableScrollWheelZoom();

        //create custom dynamic layer
        //esri.arcgis.gmaps.DynamicMapServiceLayer
(url,esri.arcgis.gmaps.ImageParameters?,opacity?,callback?);
                var dynamicMap = new esri.arcgis.gmaps.DynamicMapServiceLayer
("http://myserver/ArcGIS/rest/services/WGS84/Campus_Bldgs_wgs/
MapServer", null, 0.75,         dynmapcallback);
        }
         function dynmapcallback(groundov) {
         //Add groundoverlay to map using gmap.addOverlay()
        gmap.addOverlay(groundov); dynMapOv = groundov; } </script>

        </script>

On Dec 3, 9:11 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> Hi bigdog-
>
> Hmm. You've put the Map component inside the esri namespace. Is that
> somehow referencing our Google Maps API component?
>
> Perhaps you need to have more explicit sizing of the map component?
>
> - pamela
>
>
>
> On Tue, Dec 2, 2008 at 1:48 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > I using maps flex api with esri flex api trying to overlay my
> > buildings overlay on top of a google map, howver, I am gettin a mis-
> > registration of the maps. My maps are in the correct projection and
> > work correctly using the javascript api. I suspect I haven't added all
> > the code or the right lat-long call to the code (i'm using same
> > parameters as javascript).
>
> >  <mx:Script>
> >                <![CDATA[
> >                        import com.google.maps.LatLng;
> >                        import com.google.maps.Map;
> >                        import com.google.maps.MapEvent;
> >                        import com.google.maps.MapType;
> >                        import com.esri.ags.Graphic;
>
> >            import com.esri.ags.SpatialReference;
> >            import com.esri.ags.geometry.Extent;
> >   private function onMapReady(event:Event):void {
> >   this.map.setCenter(new LatLng(33.212, -87.541), 14,
> > MapType.NORMAL_MAP_TYPE);
> >       }    ]]>
> >       </mx:Script>
>
> >       <esri:Map id="myMap">
> >       <esri:SpatialReference wkid="4326"/>
> >       <esri:ArcGISDynamicMapServiceLayer
> > id="Campus_Bldgs_wgs">
> >                        <esri:url>http://myserver/ArcGIS/rest/services/WGS84/
> > Campus_Bldgs_wgs/MapServer</esri:url>
> >                </esri:ArcGISDynamicMapServiceLayer>
> >                 </esri:Map>
> > </mx:Application>- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to