insert javascript code

  • Mod

    Kenneth John Odle


    Okay, here’s a really weird idea, but it might be what you are looking for.

    Try creating just a plain vanilla html file that contains the code for the map and the sidebar like in the link you provided. (Which is very, very interesting…I have never seen Google maps for this purpose.) Upload that to some safe place on your blog, and then use an <iframe> to place that file on your blog.

    Completely untested, but all my brain can come up with right now.




    That is the only way I could get it to work. I didn’t know if a <iframe> would be the best way of doing it. I was trying to get it to work within wordpress, but everything i’ve tried doesn’t work. (<iframe> does work).

    (Which is very, very interesting…I have never seen Google maps for this purpose.)

    Why is this such an odd way of doing it? How else could the data be displayed on the map with a usable sidebar?



    I think Ken was commenting on how cool and “fun” this usage of google maps is. Usually, we see it for a business location, or a tourist attraction… never have we seen it used as a “route” with multiple “stops”. I love the idea also!!

    I don’t know very much about the google maps api. I’ll try to take a look at it and see how they are reloading that map without having to reload the entire page. I would imagine each link in the sidebar has a script associated with it when you click it… which then loads the corresponding map.

    Although I have no idea… but I’ll try to learn a little about it.




    The map used in that page is not API V3. I can’t remember if its Ver 1 or 2. But the way it works is the side bar links to a JavaScript function that changes the lat/long on the map. The page never refreshes. The map does not ‘load or refresh’ for each location. It just kinda moves. In the same way as holding down the mouse and dragging it side to side.

Viewing 4 posts - 11 through 14 (of 14 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!