How Google Maps loads images

J

JimInOC

Does anyone have any idea as to how google loads pieces of images
together so as you drag new image pieces are loaded from the server?

I haven't had much luck finding any articles on it.

thanks
 
J

Jonas Raoni

Does anyone have any idea as to how google loads pieces of images
together so as you drag new image pieces are loaded from the server?

I haven't had much luck finding any articles on it.

thanks


The screen has a starting coordinate, let's say (50, 100), when you drag
to the top, the y coord decreases by the amount that you dragged related
to the current zoom, etc., you know it ;]
 
H

Hywel Jenkins

Does anyone have any idea as to how google loads pieces of images
together so as you drag new image pieces are loaded from the server?

I haven't had much luck finding any articles on it.

thanks


The screen has a starting coordinate, let's say (50, 100), when you drag
to the top, the y coord decreases by the amount that you dragged related
to the current zoom, etc., you know it ;]

So, *you* don't know either.
 
J

Jonas Raoni

Hywel said:
Does anyone have any idea as to how google loads pieces of images
together so as you drag new image pieces are loaded from the server?

The screen has a starting coordinate, let's say (50, 100), when you drag
to the top, the y coord decreases by the amount that you dragged related
to the current zoom, etc., you know it ;]

So, *you* don't know either.

You're totally right, I just took a look on the gmail source code and it
was awful, considering it was made by the so-called google engineers.

Google has excellent ideas, but it seems that their web developers are
lazy to write nice code. So I don't look at their codes, it doesn't
interests me, I just use the service and browse happy...

So, yes... I tried to help by guessing how their gmap works ;]
 
H

Hywel Jenkins

Hywel said:
(e-mail address removed) wrote:
Does anyone have any idea as to how google loads pieces of images
together so as you drag new image pieces are loaded from the server?

The screen has a starting coordinate, let's say (50, 100), when you drag
to the top, the y coord decreases by the amount that you dragged related
to the current zoom, etc., you know it ;]

So, *you* don't know either.

You're totally right, I just took a look on the gmail source code and it
was awful, considering it was made by the so-called google engineers.

The front-end code to Google Maps is trivial. It's the back-end stuff that's smart.

Google has excellent ideas, but it seems that their web developers are
lazy to write nice code. So I don't look at their codes, it doesn't
interests me, I just use the service and browse happy...

I suspect that the code you've seen has been mashed before deployment.

So, yes... I tried to help by guessing how their gmap works ;]

So, going on your first answer, how does Google Maps attach new images
to the scrolling edges of the display? It doesn't load tiles for the
entire world in one go - it adds them as required.
 
J

Jonas Raoni

Hywel said:
The front-end code to Google Maps is trivial. It's the back-end stuff that's smart.

Sure, but the front-end should be as nice as the back. I like pretty +
idiot girls, but for sure I preffer a pretty and smart one :)
I suspect that the code you've seen has been mashed before deployment.

I don't know if it's just because of that, I took a look on the adsense
code and it looks bad too, too many global stuffs, the "google.com/ig
API" also looks bad, etc.
So, going on your first answer, how does Google Maps attach new images
to the scrolling edges of the display? It doesn't load tiles for the
entire world in one go - it adds them as required.

For sure not, that's an impossible solution hehe.

In my mind, there must be some not visible blocks around the "drag box"
and when you scroll by 1 block, the src of the <img>'s get changed and
the blocks are adjusted in the center again, at least I would do it this
way, but there are quite a lot of ways to achieve this objective.

+-------+
| +---+ |
| |###| |
| +---+ |
+-------+

This is just an example of what I would do, since adding new blocks as
the user scrolls would require quite a lot of memory.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top