0

when i went through the source code of the google maps page i've realized that the whole map is formed by small tiles of images. But how does the javascript identifies the roads on the google maps to show the way from ourlocation to destination??

1

2 Answers 2

1

I couldn't tell you HOW it works, it is a very complex application but all the work is done on the server and the reason the page shows the map as images is purely down to the limited ways in which a browser can display content.

0

Google have several layers with information about streets, roads, etc... when you use google maps only show a "graphical representation" of their data in bitmap format, but they need a "vectorial" layer that we don't see it.

Calculate routing is a very complex infraestructure problem in GIS server, for example, with Geoserver and PostGIS you can use Dijkstra Routing with Pgdijkstra.

It's very complex question, for a short answer.

1
  • Ok, let me make it more specific. are there any JavaScript apis to identify the color of an image at a given point?
    – sujith
    Commented Feb 25, 2011 at 4:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.