Google maps doesn't work with XHTML, so you have to tweak the Content-Type header using LiftRules.*determineContentType* from your Boot class*. *It takes a partial function so that you can make it specific to a single page:
LiftRules.determineContentType = { case (Full(RequestState("view" :: "map" :: Nil, _, _), _)) => "text/html" // I think this should work } orElse LiftRules.determineContentType or you can override it for your whole app: LiftRules.determineContentType = { case _ => "text/html" } Derek On Sun, Oct 19, 2008 at 1:11 AM, tacobandit <[EMAIL PROTECTED]> wrote: > > Hey guys, I'm trying to put together some dynamic KML, and google maps > doesn't seem to be happy with it. I'm wondering if it's because of the > MIME type of my response. Is it easy to set this or other http header > fields for any given http response? > > I'm pretty new to lift and scala and am loving them so far... > > Appreciate any help... otherwise I might have to start digging through > the source code. My scala reading skills are slow still... > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---