T
Trevor Lawrence
This me throws me
I have constructed a site with Google Maps API, and have been updating it to
get a better result.
If you go to http://trevorl.mvps.org/ratec/events.html and click on the
first map, it opens http://trevorl.mvps.org/ratec/RATECmap.html
This calls the API and gives a red icon in the centre -
http://trevorl.mvps.org/ratec/images/red.gif.
The image file for this icon was originally 20*34 which was very small so,
on my local copy, I doubled its size to 40*68. I have deleted this image
file from the website and recopied my local one several times. On the
website its properties now show as 40*68. .
But a small icon keeps appearing on the website. This is annoying, because
1. I want a larger sized image - it has text on it which can't be read at
the smaller size.
2. When I try to position the icon, the position varies between my local
copy and the website.
Positioning in Google Maps API is based on the size of the image. To quote:
iconAnchor ( GPoint ) specifies "pixel co-ordinates relative to top left of
image at which icon is anchored to map".
This is a bit confusing because which image is being referred to ?
If image and icon are the same, it says "position image relative to image "
?!
Anyway, when I change the GPoint coordinates, they do seem to relate to the
icon size in some way. When I managed to nicely position the icon (a 40*68
image), the position is wrong for a 20*34 image.
It must be something to so with a cache holding a previous file, but I have
tried clearing everything I know e.g using FP Cleaner and deleting
temporary internet files in IE7 - although the latter never finishes and I
have to cancel it using Process Explorer.
Perhaps someone can tell me where the temporary internet files are stored.
When I looked for them, I couldn't find them.
Or does someone know whether Google Maps has its own cache, and I just have
to wait 24 hours or so before it is cleared?
I have constructed a site with Google Maps API, and have been updating it to
get a better result.
If you go to http://trevorl.mvps.org/ratec/events.html and click on the
first map, it opens http://trevorl.mvps.org/ratec/RATECmap.html
This calls the API and gives a red icon in the centre -
http://trevorl.mvps.org/ratec/images/red.gif.
The image file for this icon was originally 20*34 which was very small so,
on my local copy, I doubled its size to 40*68. I have deleted this image
file from the website and recopied my local one several times. On the
website its properties now show as 40*68. .
But a small icon keeps appearing on the website. This is annoying, because
1. I want a larger sized image - it has text on it which can't be read at
the smaller size.
2. When I try to position the icon, the position varies between my local
copy and the website.
Positioning in Google Maps API is based on the size of the image. To quote:
iconAnchor ( GPoint ) specifies "pixel co-ordinates relative to top left of
image at which icon is anchored to map".
This is a bit confusing because which image is being referred to ?
If image and icon are the same, it says "position image relative to image "
?!
Anyway, when I change the GPoint coordinates, they do seem to relate to the
icon size in some way. When I managed to nicely position the icon (a 40*68
image), the position is wrong for a 20*34 image.
It must be something to so with a cache holding a previous file, but I have
tried clearing everything I know e.g using FP Cleaner and deleting
temporary internet files in IE7 - although the latter never finishes and I
have to cancel it using Process Explorer.
Perhaps someone can tell me where the temporary internet files are stored.
When I looked for them, I couldn't find them.
Or does someone know whether Google Maps has its own cache, and I just have
to wait 24 hours or so before it is cleared?