CloudNine --

Have you checked out the reference?
http://code.google.com/apis/maps/documentation/reference.html

For panning, try:
http://code.google.com/apis/maps/documentation/reference.html#GMap2.panTo

To insert A, B, C, D I would recommend reading more on dynamically
adding elements to a page via Javascript, or taking a look at how that
code you have works.  In the code, a function is called when the
search is complete and the results are written to the page.  If you
follow the logic, you can add A, B, C, D into the HTML before the
results are put onto the page.

-Ben

On Feb 14, 4:46 am, CloudNine <[email protected]> wrote:
> I'm trying to polish up an implementation of Google Maps as a sort of
> international airport support directory for a free European flight
> planning website I have in development (www.eurofpl.eu-- requires
> quick registration), but I have just a couple non-critical elements I
> need to figure out for the sake of usability and all-around
> awesomeness...
>
> *** SOURCE CODE ***http://paste-it.net/public/b7be61c/
>
> I've gotten this far just checking out example code, but I'm still a
> fledgling programmer, having just taught myself a bit of php, MySQL,
> and JavaScript over the past few months.
>
> http://www.holland.aero/site_example.jpg
>
> The image above shows it in action, kinda.  The user has just selected
> to view aviation services at EKRK Roskilde airport in Denmark (really
> just a 'aviation' GlocalSearch() centered around the airport's lat/
> lon).  One pin is set up for the geocode 'EKRK', to mark the airport
> itself and then unique markers go up for the results, also listed in a
> div right below the map.  Awesome, BUT...
>
> NON-CRITICAL ELEMENT #1:  When you click on a link in the results div,
> for instance "Cam Aviation A/S" or "Dao Aviation A/S" as seen in the
> image linked above, a new window pops up taking the user to the Google
> Maps profile of that location.  I'd much rather the results div link
> merely select/panTo the corresponding marker on the map, opening the
> InfoWindow, with the Google Maps profile and directions to/from links
> presented normally.
>
> The example at:
>
> http://code.google.com/apis/maps/documentation/examples/control-local...
>
> ...has this desired behavior, but it also has a bazillion things I
> don't need, and what seems to be a dependency on the search box form I
> couldn't figure out how to work around.
>
> NON-CRITICAL ELEMENT #2:  The other thing is being able to somehow
> insert an A, B, C, D, etc. before each results in div below.  I'm
> thinking I might be able to achieve this with the appendChild and node
> stuff but I'm still having difficulty kinda, picturing how it's all
> coming together.  Again the control-localsearch.html does this but I'm
> not sure exactly how.  Something with creating a table on the fly I
> think.
>
> But yeah, that's pretty much it.  I don't need specifics or the entire
> code written out for me, but if anyone has any ideas on how they'd
> approach achieving these two goals, what would have to change, etc,
> any suggestions and guidance would be much appreciated.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to