Yep, that was it.. Working fine now.
Thanks again!
On Jul 30, 8:18 pm, Kesuke wrote:
> 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
>
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
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, Kes
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. T
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/mer
Your page is generating errors:
Uncaught ReferenceError: initialize is not defined
I suggesting looking at the JavaScript console.
-John Coryat
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web
At a quick glance, have you noticed the $filename is expecting to
output a link in the following format:
$filename = /var/www/merge/tiles/zoom_x_y.png
But your files appear to me to be organised into something like /var/
www/merge/tiles/zoom/x/y.png ?
Take a closer look at the $filename, I suspe
Thanks for posting that Kesuke! It would be great to get this working.
Those 404s have been a headache for quite a while.
I've implemented your example on a small test page and I'm not seeing
any tiles. I'm not too familiar with PHP but I did check that safe
mode is "off" with phpinfo.
My php loo
Correction, after deleting my firefox cache to see the full benefits
Google PageSpeed has gone from ~45/100 before these changes to
~90/100! Thats pretty solid stuff for a map with 1.5mb of data to load
just on initialize. It has also cut the number of 404s from ~100 on
load down to 0.
Furthermore
Okay, thanks everyone – the PHP solution works great!
So here is a guide for Jason or anyone else who stumbles across this;
1.) Make a new PHP file with the following code:
Basically this PHP script will check to see if the file exists. If it
does it will return the file. If it doesn't, it will
On Friday, July 29, 2011 6:20:03 PM UTC-5, Jason wrote:
>
> Sorry for the noob question but does this require any other
> configuration changes (ie. htaccess)? I've included this in my
> index.html and it is still showing 404 errors in Chrome.
>
> Thanks
>
>
You'll have to be more specific. W
Sorry for the noob question but does this require any other
configuration changes (ie. htaccess)? I've included this in my
index.html and it is still showing 404 errors in Chrome.
Thanks
On Jul 29, 2:19 pm, Barry Hunter wrote:
>
> $filename =
> "tiles/".intval($_GET['z'])."/".intval($_GET['x']
wrote:
> Does anyone know of a page or an example where this is done with PHP?
> Makes sense but I haven't done much PHP.
>
> Thanks
>
> On Jul 28, 11:40 pm, Martin™ wrote:
>> Why not make all tile requests to a PHP script?
>>
>> The script can check if the requested tile exists.
>> If the tile e
Does anyone know of a page or an example where this is done with PHP?
Makes sense but I haven't done much PHP.
Thanks
On Jul 28, 11:40 pm, Martin™ wrote:
> Why not make all tile requests to a PHP script?
>
> The script can check if the requested tile exists.
> If the tile exists then the script
On Fri, Jul 29, 2011 at 11:05 AM, Martin™ wrote:
> Just a thought.
>
> Will a browser cache tiles served via a server-side script or not?
It can. Needs the script to set the right caching headers.
At one time many proxies wouldnt cache a request with a ? in it. But
most now do, when they have th
Just a thought.
Will a browser cache tiles served via a server-side script or not?
Any idea?
Martin.
On Jul 29, 5:43 am, John Coryat wrote:
> Martin's suggestion is the standard way of doing it. Make a tile server that
> does this simple function and you'll notice your server runs faster.
> P
Martin's suggestion is the standard way of doing it. Make a tile server that
does this simple function and you'll notice your server runs faster.
Processing a 404 is time consuming.
If you'd like to see a Perl example, see
http://www.usnaviguide.com/ws-2008-02 - look for download.zip
-John Cor
Why not make all tile requests to a PHP script?
The script can check if the requested tile exists.
If the tile exists then the script can return it to the map, otherwise
it can return a blank transparent tile.
http://php.net/manual/en/function.file-exists.php
http://www.php.net/manual/en/functio
I'd really like to know a fix for this too. It's been a problem for me
for quite a while and I can't easily get write permission
to .htaccess.
On Jul 27, 1:46 pm, Kesuke wrote:
> I am using custom tile overlays on a map. To fetch the tiles I use the
> generic method:
>
> function createImageMapT
19 matches
Mail list logo