Great! It's definetely working now, just removed the first function and changed the name of the .js. And it's working great! Thanks a lot for your patience! Have a nice day!
On 9 Set, 03:24, "[email protected]" <[email protected]> wrote: > On Sep 8, 8:20 am, "[email protected]" <[email protected]> > wrote: > > > On Sep 8, 4:22 am, Txell <[email protected]> wrote: > > > > Ok, thanks for posting your working copy! Because I removed the > > > wrapper and didn't work either. I'm doing something stupid and wrong, > > > but can't get what! > > > Well... as I said above, currently you have this problem on your > > online version: > > > Not Found > > The requested URL /tl_files/BrogitGuiatges/Prova_Borges/js/ > > mapa_BorgesCamp.js was not found on this server. > > > Without the javascript the map won't work. And I couldn't recreate my > > version on a different computer without writing it from scratch. > > My test/proof of concept > page:http://www.geocodezip.com/elbrogit_com_Prova_BorgesA.html > > -- Larry > > > > > > > > Thanks a lot again! > > > > On 8 Set, 11:55, "[email protected]" <[email protected]> wrote: > > > > > On Sep 8, 3:06 am, Txell <[email protected]> wrote: > > > > > > First of all, thanks a lot for your help! It's getting more difficult > > > > > than I expected to understand all this code! I followed your > > > > > suggestions, but still doesn't work, I couldn't even see the frame of > > > > > the map. I changed the name from mapa_BorgesCamp back to map, but I > > > > > only can see the frame. I'm getting desperated because I don't > > > > > understand what isn't working. Also, I don't understand why should I > > > > > give size to the map in the index, because I already set the size in > > > > > map.js. > > > > > I didn't see that (and I can't see your code right now and my working > > > > example is on a different computer...) > > > > > > I tried to see it in Firefox (I always use Chrome) but can't > > > > > see the map either. > > > > > > I've compared my code with working examples again, but still can't see > > > > > the problem. And can't undersand why the window onload isn't firing, > > > > > because I just wrote the code as in other working examples. You may > > > > > think I'm blind or stupid, but I'm just unable to solve the whole > > > > > problem! :-( I would love to see the map with the 2markers with unique > > > > > infowindow content! > > > > > I had to remove your "wrapper" function to get the onload event to > > > > fire. I just went through the steps I mentioned above and it did > > > > work. > > > > > >http://www.elbrogit.com/tl_files/BrogitGuiatges/Prova_Borges/index.html > > > > > This file doesn't exist (at least according to > > > > Chrome):http://www.elbrogit.com/tl_files/BrogitGuiatges/Prova_Borges/js/mapa_... > > > > so your map doesn't do anything useful for me now. > > > > > I will post my copy when I get to the computer it is on when I have > > > > time. > > > > > -- Larry > > > > > > On 6 Set, 15:56, "[email protected]" <[email protected]> wrote: > > > > > > > On Sep 6, 7:12 am, Txell <[email protected]> wrote:> > > > > > > Hello, > > > > > > > > the first ( is to encapsulate the function, following the advices > > > > > > > of > > > > > > > Svenneberg in his book... I don't get any error in my browser, > > > > > > > apart > > > > > > > from an undefined Uncaught SyntaxError: Unexpected end of input, > > > > > > > which > > > > > > > I've also tried to solve, but can't get rid of it! > > > > > > > > In fact, I was using all his code to build the map and everything > > > > > > > worked great till I tried to usemultiplemarkerswith different > > > > > > > information for each to show in the infowindow. > > > > > > > Where is that map where it "worked great"? I suspect you have > > > > > > changed > > > > > > more than you think. > > > > > > > Currently: > > > > > > 1. I don't get an error but the window onload event isn't firing > > > > > > 2. you have an extra comma at the end of your marker object > > > > > > definition, that won't work in IE. > > > > > > 3. your code is looking for: > > > > > > map = new google.maps.Map(document.getElementById('mapa_BorgesCamp') > > > > > > but that div doesn't exist on that page, it contains this one: > > > > > > <div id="map"></div> > > > > > > 4. when I fix those your map has zero size > > > > > > 5. when I give it a size, I see a map with 2markerswith unique > > > > > > infowindow content. > > > > > > > -- Larry > > > > > > > > Thanks for your help! > > > > > > > > On 6 Set, 12:22, Rossko <[email protected]> wrote: > > > > > > > > > >http://www.elbrogit.com/tl_files/BrogitGuiatges/Prova_Borges/index.html > > > > > > > > > My browser reports ascript error about a missing bracket in > > > > > > > > mapa_BorgesCamp.js > > > > > > > > The first line looks a bit suspect > > > > > > > > (function() {- 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]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
