Javier and Pamela, I have it working well now. Thanks for the help.
Steve On Wed, Jan 21, 2009 at 8:27 PM, pamela fox <[email protected]> wrote: > > Hi Stephen- > > Javier's explanation is correct. > > This example shows how to create a custom map type out of a custom tile > layer: > > http://code.google.com/apis/maps/documentation/flash/demogallery.html?searchquery=tilelayer&classname= > > This example shows how to create a TileLayerOverlay out of a custom tile > layer: > > http://code.google.com/apis/maps/documentation/flash/demogallery.html?searchquery=tilelayeroverlay&classname= > > - pamela > > On Thu, Jan 22, 2009 at 9:59 AM, Javier de la Torre <[email protected]> > wrote: > > I suggest you extend the TileLayerOverlayClass. > > Basically you will need to override the loadtile method and construct > your > > URL there. There must be an example somewhere, if not I will provide you > > with one, it is a very easy task really. > > Javier > > www.vizzuality.com > > On 21/01/2009, at 22:13, Stephen Crawford <[email protected]> > > wrote: > > > > Hi Javier, > > > > In the javascript API I was able to do it like this: > > > > var tilelayer = new GTileLayer(null, null, null, { > > tileUrlTemplate: > > ' > http://www.cei.psu.edu:8080/geoserver/gwc/service/gmaps?layers=ja_landuse&zoom={Z}&x={X}&y={Y}<http://www.cei.psu.edu:8080/geoserver/gwc/service/gmaps?layers=ja_landuse&zoom=%7BZ%7D&x=%7BX%7D&y=%7BY%7D> > ', > > isPng:true, > > opacity:0.3 } > > ); > > > > var myTileLayer = new GTileLayerOverlay(tilelayer); > > map.addOverlay(myTileLayer); > > > > ...but in Flex the TileLayer doesn't have a 'tileURLTemplate' option as > in > > GTileLayer. From looking at some of the examples I guess i need to first > > make my own TileLayer class that extends TileLayerBase? > > > > Thanks, > > Steve > > > > > > On Wed, Jan 21, 2009 at 4:00 PM, Javier de la Torre <[email protected]> > > wrote: > >> > >> Hi, > >> > >> It is pretty much as using directly geoserver. Actually is easier than > >> with wms directly as geowebcache can understand directly goodle xyz > >> tile system so you don't need to do any transformation from these tile > >> coords to lat/lon bounding box on the TileLayerOverlay class. > >> > >> What is your exact problem? > >> > >> > >> > >> Javier > >> www.vizzuality.com > >> > >> On 21/01/2009, at 20:05, steve_psu <[email protected]> wrote: > >> > >> > > >> > Does anybody have any experience using GeoWebCache (with Geoserver) to > >> > provide the TileLayerOverlay? It's really easy with the javascript > >> > API, but I can't figure it out with Flex. > >> > > >> > Thanks, > >> > Steve > >> > > > >> > >> > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
