Yup you are correct, it should be "?z="        "&x="       "&y="

Hmmm, my guess is it's probably because you have cached some  of the
images in chrome while tweaking it. Try dumping your temp. internet
files, then when you revist the page click Ctrl-F5 to do a force
refresh. It is probably because of the header("Cache-Control: max-
age=84600") - which means that for 84600 seconds (ie 24 hours) the
resources should be retrieved from the cache rather than your server.

On Jul 31, 1:08 am, Jason <jason.wool...@gmail.com> wrote:
> Thanks for pointing that out. I'm assuming you mean the "/&x="  and  "/
> &y="? I thought so too but the odd thing is it works fine without the
> forward slashes in Firefox or IE but in Chrome the tiles don't load
> without having the forward slashes there.
>
> Not sure why that is.
>
> On Jul 30, 5:47 pm, Kesuke <nick_dai...@hotmail.com> wrote:
>
>
>
> > Your welcome, i'm also very pleased to have this sorted.
>
> > On a side note, you don't need the forward slashes in your javascript,
> > only your PHP. Even though it works it is probably best to remove them
> > as it might throw up an error in some browsers.
>
> > With $_GET, you stick a ? on the end of the URL. Then the variable
> > name, followed by the equals sign and the value (number/letters etc.).
> > If you want to add more than one set of values and variables, seperate
> > them with the ampersand (&) symbol. You need the slashes in the PHP
> > obviously because you are telling it to look for the next folder.
>
> > On Jul 30, 10:27 pm, Jason <jason.wool...@gmail.com> wrote:
>
> > > Got it.. Thanks John.. I was working on it when you hit it probably.
>
> > > Anyway, I think I've got it solved. Kesuke's PHP code was looking for
> > > tiles named "zoom_x_y.png". My tms is a bit different, zoom and x are
> > > folders and y is the tile png.
>
> > > Changing the php $filename to:
>
> > > $filename = "/var/www/merge/tiles/" . intval($_GET['z']) .
> > > "/" .intval($_GET['x']) . "/" . intval($_GET['y']) . ".png";
>
> > > and then in the map code changing the return statement to:
>
> > > return "/merge/tiles.php?z=" + zoom + "/&x=" + coord.x + "/&y=" +
> > > (Math.pow(2,zoom)-coord.y-1) + ".png";
>
> > > seems to work for me. I have a google base layer, tiles and no 404s.
>
> > > Kesuke, I can't thank you enough for that post. That problem was
> > > bugging me for months!
>
> > > Thanks much!
>
> > > On Jul 30, 4:43 pm, John Coryat <cor...@gmail.com> wrote:
>
> > > > Your page is generating errors:
> > > > Uncaught ReferenceError: initialize is not defined
>
> > > > I suggesting looking at the JavaScript console.
>
> > > > -John Coryat- Hide quoted text -
>
> > > - Show quoted text -- 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to