I'm doing some work for a company that has 5 offices. One day one of the Principals wrote to me and directed me to a site that had a map that slowly zoomed in; it was made with Flash. I'm not good with Flash, so I asked just what he wanted in terms of end result, and he wants something that looks "neat" but shows basic "map" directions to the 5 offices.
I decided that Google interactive maps would probably do the trick. The visitors could move the maps around, zoom in and out, get a link to directions, etc. and I think it would make him and the others happy.
I got my Google API number and have read their documentation along with info from many other sites. My first attempt at making this work was to make a tabbed page with 1 tab for each office. It was pretty, but I soon realized that I was in trouble, because each Google interactive map needs separate heading info as well as separate body info. I know that I can make a map with all five offices on one map and I did make that, but it doesn't really show any office location well as the distances are far away enough that you're looking at a big chunk of the east coast and also Puerto Rico.
I'd really like to have 5 interactive maps available from one page (or maybe 6, if I include a map with all offices shown on it), but now I'm at a loss on how to present this. I know this must seem like a simple problem to most of you, but I've been struggling with how to solve this. Maybe I could show the interactive map with all 5 offices and have links to separate pages for the other office maps? I was hoping to keep all maps on one tabbed page like I started out with, but with obvious needed coding corrections. I just don't know what corrections to make!
I thought of maybe using frames <gasp> but I've never used frames before and thought it might not be the best idea in the world. I do try to make whatever I can be accessible and XHTML and CSS valid and I tried using iframes, but didn't have luck in getting it to go. I thought it should work, but I've thought a lot of things in my life... ; )
When I try iframes in each tabbed part of the page, the first map comes out fine, the others all fail. From what I saw, when using iframes, I could have multiple body html info, but only one set of "head" info. In the head section, I tried changing one needed javascript and made a number of scripts, naming each with the state name. example - one javascript had id="mapNY" - the next script had id="mapPA" - and another id="mapPR" etc., but it didn't work. They were all identical except for id and name. In the html of each iframe, I obviously followed with the same id names in the scripts according to office state. I think it should work, but I don't know what I'm doing wrong.
Any ideas or suggestions? I'd really appreciate your assistance. (Sorry if this is a lame question, but even if it is, I just don't know the answer.)
Many thanks in advance, Nan
I decided that Google interactive maps would probably do the trick. The visitors could move the maps around, zoom in and out, get a link to directions, etc. and I think it would make him and the others happy.
I got my Google API number and have read their documentation along with info from many other sites. My first attempt at making this work was to make a tabbed page with 1 tab for each office. It was pretty, but I soon realized that I was in trouble, because each Google interactive map needs separate heading info as well as separate body info. I know that I can make a map with all five offices on one map and I did make that, but it doesn't really show any office location well as the distances are far away enough that you're looking at a big chunk of the east coast and also Puerto Rico.
I'd really like to have 5 interactive maps available from one page (or maybe 6, if I include a map with all offices shown on it), but now I'm at a loss on how to present this. I know this must seem like a simple problem to most of you, but I've been struggling with how to solve this. Maybe I could show the interactive map with all 5 offices and have links to separate pages for the other office maps? I was hoping to keep all maps on one tabbed page like I started out with, but with obvious needed coding corrections. I just don't know what corrections to make!
I thought of maybe using frames <gasp> but I've never used frames before and thought it might not be the best idea in the world. I do try to make whatever I can be accessible and XHTML and CSS valid and I tried using iframes, but didn't have luck in getting it to go. I thought it should work, but I've thought a lot of things in my life... ; )
When I try iframes in each tabbed part of the page, the first map comes out fine, the others all fail. From what I saw, when using iframes, I could have multiple body html info, but only one set of "head" info. In the head section, I tried changing one needed javascript and made a number of scripts, naming each with the state name. example - one javascript had id="mapNY" - the next script had id="mapPA" - and another id="mapPR" etc., but it didn't work. They were all identical except for id and name. In the html of each iframe, I obviously followed with the same id names in the scripts according to office state. I think it should work, but I don't know what I'm doing wrong.
Any ideas or suggestions? I'd really appreciate your assistance. (Sorry if this is a lame question, but even if it is, I just don't know the answer.)
Many thanks in advance, Nan