Google Answers Logo
View Question
 
Q: Google Maps API Javascript help ( No Answer,   0 Comments )
Question  
Subject: Google Maps API Javascript help
Category: Computers > Programming
Asked by: richardmtl-ga
List Price: $10.00
Posted: 02 Jul 2006 07:49 PDT
Expires: 03 Jul 2006 06:41 PDT
Question ID: 742787
Hi all,

I'm a 100% newbie when it comes to javascript, so I need some help
with something. I'm sure that I could find the solution to this in
time, but I don't know what search terms to use, so that's why I'm
asking here.

This is my problem. I have a page with a Gmap in the middle. I want to
be able to call the gmap script in a seperate .js file so as to reduce
to size of the html file, and to allow caching of the file, as well as
to facilitate editing. Here is the page I'm working on:

http://mexicometro.org/en/line3/indios_verdes_gmap.html

I will have many pages like this, each with a different
"map.setCenter", but I want them all to have the same icons and
polylines (there will be many more icons and polylines, I just haven't
programmed them yet). It seems to me that I should be able to call 2
different js files in the html; one listing all the icons and
polylines, (so that the visitor to the site will only have to download
it once and I only have to edit one, instead of a couple of hundred
different one), and one which will only set the new mapcenter. Is this
possible? When I tried it, it seems that they cancel each other out,
and I get an empty Gmaps frame, with no satelite images or anything.
One possible solution that I figured was that I could have the html
call one js file, which would set the mapcenter, and THAT js would
call the other one, with all the coordinates, etc. Can I do that? If
so, how?

I hope my question is clear enough. Please let me know if I need to
explain a bit clearer. Thank you!
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy