Re: google maps and webobjects
Re: google maps and webobjects
- Subject: Re: google maps and webobjects
- From: jerry porter <email@hidden>
- Date: Mon, 29 Aug 2005 11:26:34 -0700 (PDT)
Hello again,
Ok, I followed Praveen Boppana's advise and got this working via direct action.
I can submit latitude and longitude coords via a "map criteria search page" and
generate a "map results page"
What I would like to do now is embed the map criteria selection and results
in a page as a component instead of generating a "map results page" and
having the user go back to the "criteria page". Any suggestions?
Jerry
--- Praveen Boppana <email@hidden> wrote:
> Hi Jerry,
>
> On Aug 29, 2005, at 11:13 AM, jerry porter wrote:
>
> > Hello ,
> >
> > Thanks for the pointers.
> >
> > I am having a brain fart and can't quite seem to get this figured out.
> > This is what I did:
> >
> > I went to google's map api page, generated an api key,
> > put the auto generated code snippet html in a component
> > in a webobjects app build an ran, the page came up fine.
> >
> > The url I used was something like http://mymachinename:6000
> > I figuered I can get this to run in direct connect mode first
> > before running through a websever.
>
> You need to register the key for proper Url path, in your case http://
> yourmachinename:6000/cgi-bin/WebObjects/YourApp.woa/wa/
>
> >
> > Anyway the next thing I did was to create a simple woform
> > with a couple of textfields to allow the user to select
> > lat and long values, and a submit button
> >
> In WO the component Url is dynamic, so we are calling the page
> through direct action.
> After getting the key as I mentioned above. From your page where user
> selects Lat/Long, call the direct action which returns the map page.
> > Well after building and running I get this javascript popup
> > message: The Google Maps API key used on this web site was
> > registered for a different web site.
> > You can generate a new key for this web site at http://
> > www.google.com/apis/maps/.
> >
> You get this message If the Url path that you registered for the key
> is not matching with Components Url.
> > Any pointers on how to get this to work?
> >
> > Code snippets if possible.
> >
> >
> > thanks,
> >
> > Jerry
> >
> >
> >
> > --- Robert Walker <email@hidden> wrote:
> >
> >
> >> We are using Google maps with WO without any trouble at all. You
> >> should be fine by simply studying the many example on Google's site.
> >>
> >>
> >> On Aug 26, 2005, at 2:27 PM, Geoff Hopson wrote:
> >>
> >>
> >>> I've not used it with WO, but it was real easy to get it going with
> >>> Click (another Java-based web framework - click.sf.net). The
> >>> trick is
> >>> getting the XML right (I am plotting a bunch of points on a map).
> >>> There are hundreds of tutorials and guides out there. I don't
> >>> foresee
> >>> any issues with getting it working with WO - all you need to do is
> >>> pass a big XML string into their javascript functions and away
> >>> you go.
> >>>
> >>> This is a pretty good intro:
> >>> http://www.developer.com/java/web/print.php/10935_3528381_1
> >>>
> >>> Sorry I can't share code, only encouragement...
> >>>
> >>> Good luck, and have fun! There's a lot of goodies in there.
> >>>
> >>> Geoff
> >>>
> >>>
> >>> On 26/08/05, jerry porter <email@hidden> wrote:
> >>>
> >>>
> >>>> Hi,
> >>>>
> >>>> Has anybody used google maps api with webobjects?
> >>>>
> >>>> If so, can I get some pointers an how to do this
> >>>>
> >>>> thanks
> >>>>
> >>>> Jerry
> >>>>
> >>>>
> >>>>
> >>>> Jerry Porter
> >>>> Senior Software Engineer
> >>>> Universal Measurement Solutions, Ltd.
> >>>> Suite 1210, 333 - 5th Avenue S.W.
> >>>> Calgary, Alberta
> >>>> Canada T2P 3B6
> >>>> http://www.umsltd.com
> >>>>
> >>>> __________________________________________________
> >>>> Do You Yahoo!?
> >>>> Tired of spam? Yahoo! Mail has the best spam protection around
> >>>> http://mail.yahoo.com
> >>>> _______________________________________________
> >>>> Do not post admin requests to the list. They will be ignored.
> >>>> Webobjects-dev mailing list (email@hidden)
> >>>> Help/Unsubscribe/Update your Subscription:
> >>>> 40gmail.com
> >>>>
> >>>> This email sent to email@hidden
> >>>>
> >>>>
> >>>>
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They will be ignored.
> >>> Webobjects-dev mailing list (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>> 40mac.com
> >>>
> >>> This email sent to email@hidden
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> > Jerry Porter
> > Senior Software Engineer
> > Universal Measurement Solutions, Ltd.
> > Suite 1210, 333 - 5th Avenue S.W.
> > Calgary, Alberta
> > Canada T2P 3B6
> > http://www.umsltd.com
> >
> >
> >
> > ____________________________________________________
> > Start your day with Yahoo! - make it your home page
> > http://www.yahoo.com/r/hs
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > email@hidden
> >
> > This email sent to email@hidden
> >
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
Jerry Porter
Senior Software Engineer
Universal Measurement Solutions, Ltd.
Suite 1210, 333 - 5th Avenue S.W.
Calgary, Alberta
Canada T2P 3B6
http://www.umsltd.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden