Website diifers from local copy

  • Thread starter Trevor Lawrence
  • Start date
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?
 
S

Stefan B Rusynko

I see it as a 40x68 icon (clear your cache)
- as for the position check w/ Google API help
Neither issue is related to FP

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| 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?
| --
| Trevor Lawrence
| Canberra
| Web Site http://trevorl.mvps.org
|
|
 
T

Trevor Lawrence

Replies in-line

Stefan B Rusynko said:
I see it as a 40x68 icon
Yes, that is what the properties say, but not what I see.
(clear your cache)
I tried this, but with no success, which is why I asked can someone tell me
exactly where to find the cache. I looked where I thought it was, but found
nothing
- as for the position check w/ Google API help
Yes, I should do that (My statement was basically a throwaway one,
expressing some frustration with the Google Maps API doco.)
Neither issue is related to FP
Well yes, except that the general topic of website creation is often
addressed here, and I thought that caches may have something to do with it.
Since Steve Easton, an FrontPage MVP, wrote FP Cleaner to assist with
clearing caches, I thought that this NG might sort of be relevant. If not,
then sobeit, I will have to keep looking for the solution.
 
T

Trevor Lawrence

Stefan B Rusynko said:
I see it as a 40x68 icon (clear your cache)
- as for the position check w/ Google API help
Neither issue is related to FP

A follow-up for anyone interested

I found a solution was
Delete the icon http://trevorl.mvps.org/ratec/images/red.gif from the
website
Rename local copy ratec/images/red.gif to ratec/images/red-2.gif
Copy ratec/images/red-2.gif to
http://trevorl.mvps.org/ratec/images/red-2.gif
Alter the HTML code in each file that calls the image so that it reads:
icon.image = "images/red-2.gif";
Copy all these HTML files to website

The results can now be seen at http://trevorl.mvps.org/ratec/events.html.
The icon is larger (as on the local copy) and I can now position it using
the same x,y co-ordinates on the website as on the local copy.

I still think it must be a caching issue. Perhaps those with knowledge of
Google Maps API can comment
 
K

Karl E. Peterson

Trevor said:
I still think it must be a caching issue. Perhaps those with knowledge of
Google Maps API can comment

I think you're right. I was going to suggest something similar - using a different
icon. Did you try a different computer when you were going through the difficulty?
Another browser? Those are the quick ways to rule out caching issues.
 
T

Trevor Lawrence

Karl E. Peterson said:
I think you're right. I was going to suggest something similar - using a
different icon. Did you try a different computer when you were going
through the difficulty? Another browser? Those are the quick ways to rule
out caching issues.

No, I didn't try either.

I guess I should have, and I also thought of restarting the PC, but if it
had been a problem with Google caching at their end, that would make no
difference.

Strangely, I had some problems when working with another copy of the image
locally - it wouldn't display. This image had been downloaded and used with
no change. So I edited it, making no change but saving it as a different
name. I then deleted the original and renamed the new one to the old name.
All was then OK .

I then moved everything over back to the web and it worked fine. And yet the
name of the new image is what it was to start with (red.gif).

So, either I *needed* to edit it before using it, or Google has some cache
that finally cleared. My approach with downloaded images now will be to edit
and rename them.

BTW, I have now come to grips with using Google maps in a simple
application, so if it is relevant to this NG, I may be able to pass on my
(limited) experience.
 
K

Karl E. Peterson

Trevor said:
No, I didn't try either.

I guess I should have, and I also thought of restarting the PC, but if it
had been a problem with Google caching at their end, that would make no
difference.

I tend to forget to try, but find that when I do it often uncovers caching crap.
Strangely, I had some problems when working with another copy of the image
locally - it wouldn't display. This image had been downloaded and used with
no change. So I edited it, making no change but saving it as a different
name. I then deleted the original and renamed the new one to the old name.
All was then OK .

FrontPage can also mask what you believe to be file updates. If you don't actually
close the application that you've "saved" the file with, it's often not updated in
the web. I haven't actually figured out "The Rules" but I've gotten superstitious
enough to be fairly successful.
I then moved everything over back to the web and it worked fine. And yet the
name of the new image is what it was to start with (red.gif).

So, either I *needed* to edit it before using it, or Google has some cache
that finally cleared. My approach with downloaded images now will be to edit
and rename them.

Probably not a dumb idea. At least they then appear to be yours said:
BTW, I have now come to grips with using Google maps in a simple
application, so if it is relevant to this NG, I may be able to pass on my
(limited) experience.

I sure find it fascinating, but I suspect the group wouldn't consider it
particularly on-topic? Wish Google hosted *real* newsgroups about their products!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top