Hi, You can find an example for Google Maps for flash here too:
http://biodivertido.blogspot.com/2008/08/wms-overlays-in-google-maps-for-flash.html Javier www.vizzuality.com On Dec 8, 2008, at 11:25 AM, pamela (Google Employee) wrote: > Hi bigdog- > > Usually, you can create custom tile layers and maps out of WMS > services. See this example for the JS API: > http://gapanalysis.nbii.gov/files/gmaps/gmap_WMS.html > > - pamela > > On Fri, Dec 5, 2008 at 3:30 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED] > > wrote: > > Pam > Looking at some of the work you helped on heat maps, it appears that > if use a wms service, I might be inluck? > > On Dec 4, 10:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > 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 -- 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 -~----------~----~----~----~------~----~------~--~---
