Hey Larry, I havent been able to work on this map the last few weeks so I tried to use their v2 code and put in my new key.
Do I also need to change all the pic links? http://www.miracleparkplace.com/index/pinMAPgallery.htm It still does not display the map in ie8 or firefox or anywhere I'm sure. I have started working on html code at home so hopefully I will get to a point where I can communicate my issues better. On Wed, Jan 5, 2011 at 5:33 PM, [email protected] <[email protected]>wrote: > On Jan 5, 2:27 pm, Mike Carlyon <[email protected]> wrote: > > OK. I think I got it cleaned up (better) but expression web 4 is telling > me > > that the </html> at the end is wrong. if I put the <html> back in the > > middle where it was it acts like its good again. I have left it out. I > > will figure out why the menu on the left is spread apart on my own. > > > > What are the commands i will need to make multiple markers with > infowindows > > with text and pics? > > The markers can all look and be the same color. I am trying to copy this > > map here and its infowindow functions: > > > > http://www.miracle-recreation.com/playground-pictures.html > > > > That is our mothership company, they are either using the v2 or premier > or > > something. > > That is a v2 map. You won't be able to use the code directly in a v3 > map (but you can "port" it without too much trouble). If you are in a > rush, you should be able to use the code directly in a v2 map (you > would just need to get a key for what ever domain you want to put it > in). > > All the lines that look like this: > var point = new GLatLng("33.5567142","-112.179291"); > map.addOverlay(createMarker(point,"<infowindow > content>","info.png")); > would just need to be (not tested): > var point = new google.maps.LatLng("33.5567142","-112.179291"); > createMarker(point,"<infowindow content>","info.png"); > > And then rewrite the createMarker function for v3. > > > > I already tried just copying their code but it didn't work so I'm > > just snagging our latlng #'s off of it. We plan on adding many more > markers > > in our area as well. > > What did you try (or perhaps I should ask: define "didn't work")? > > A local copy of that page both displays markers and "works" (although > it reports a lot of access denied errors on some ie png fix htc file > in that domain). > > -- Larry > > > > > On Wed, Jan 5, 2011 at 1:57 PM, [email protected] > > <[email protected]>wrote: > > > > > > > > > On Jan 5, 11:43 am, Mike Carlyon <[email protected]> wrote: > > > > Larry, I moved the DOCTYPE declaration to the top, thanks. I was not > the > > > > original creator of this website and I noticed that the DOCTYPE > > > declaration > > > > is not on any of our pages! Do I need to add this to the template we > > > > created? > > > > > You should look at the source that is delivered to the browser and > > > make sure it has the following structure: > > > <!DOCTYPE<------ only one and it needs to be the very first thing in > > > the output, not even whitespace before it. > > > <html> > > > <head> > > > </head> > > > <body> > > > </body> > > > </html> > > > > > you currently still have a second html tag and associated DOCTYPE, > > > head (with no </head>) and body. > > > > > > I also noticed that after doing so it messed up the menus on the left > > > side > > > > of this page. Also, the map seemed to work before I added this part: > > > > > > ['Alamo Ranch', 29.477054,-98.7356355, 7,<h3 align='left'>Alamo > > > > Ranch</h3><div align='left'><p>4522 Albert Martin<br />City of San > > > > Antonio<br />San Antonio, Texas 78251<br />], > > > > > > ['Pinaccle Point Apartments', 28.9324595,-97.0283383, 7,<h3 > > > > align='left'>Pinnacle Point Apartments</h3><div align='left'><p>702 > > > Salem<br > > > > />Pinnacle Point Apartments<br />Victoria, Texas 77904<br />], > > > > > > ]; > > > > > This isn't what I see in the page that is live. > > > > > > Before I added this i just had this code in its place: > > > > > > pins[0] = new google.maps.LatLng(29.477054,-98.7356355); > > > > > This line needs to be moved outside the definition of the sites array. > > > > > Once you fix the HTML structure, look at the javascript errors the > > > browser reports and fix them. > > > > > -- Larry > > > > > > markers[0] = new google.maps.Marker({ position: pins[0], map: > map, > > > > title: 'Alamo Ranch' }); > > > > } > > > > > > for three different locations and it seemed to work great. Those were > the > > > > only lines I changed. > > > > Yesterday with your help I made my page work with the map in all the > > > > browsers and on ipad/phones. > > > > I felt like a king yesterday... Today, not so much. > > > > > > I am learning html code and working on our website at the same time > so > > > > please excuse my poor code skills. I am using expression web4 and am > > > > enjoying its interface much more than our old frontpage2000. I am > certain > > > > that I can improve our website given some time, but right now this > map is > > > > important to my boss and myself so any help you provide is so very > > > helpful. > > > > Thank you, and thanks to everyone here who is helping out bozos like > me. > > > > > > On Wed, Jan 5, 2011 at 12:57 PM, [email protected] > > > > <[email protected]>wrote: > > > > > > > On Jan 5, 10:04 am, BMC <[email protected]> wrote: > > > > > > Can anybody help me with my code or let me know if I've gone in > the > > > > > > complete wrong direction with it? > > > > > > Thanks > > > > > > > >http://www.miracleparkplace.com/index/pinMAPgallery.htm > > > > > > > When creating a google maps API page make sure your html is valid. > > > > > You have multiple <html>, body and head tags, your DOCTYPE > declaration > > > > > is not the first thing in the file. Make sure you only have one of > > > > > each (I think that is why you aren't getting a map, at least I > don't > > > > > see one in IE). > > > > > > > -- Larry > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Google Maps JavaScript API v3" group. > > > > > To post to this group, send email to > > > > > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<google-maps-js-api-v3%[email protected]> > <google-maps-js-api-v3%2B[email protected]> > > > <google-maps-js-api-v3%2B[email protected]> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.-Hide > > > quoted text - > > > > > > - Show quoted text - > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Maps JavaScript API v3" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-maps-js-api-v3%[email protected]> > <google-maps-js-api-v3%2B[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide > quoted text - > > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- *Michael Carlyon* -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.
