Is there a javascript adapter / wrapper library available that can be used instead of directly programming to a specific API such as the Google API?
I'm going to learn how to use the web mapping services, and now I want to find out which mapping service I want to use to develop a new website.
Although, I would like to simplify the transition to another map service without overwriting a lot of code and would rather just reconfigure which map service to use, so I can just continue programming using the universal rewrite code API adapter, for example, when switching from Google Maps to Maps Yahoo.
For example, in the tutorial at:
http://code.google.com/apis/maps/documentation/javascript/tutorial.html
there are some types of Google, such as "google.maps.LatLng", "google.maps.Map" , "google.maps.MapTypeId", and I believe that the Bing and Yahoo APIs have the appropriate types for such actions.
So, the main question is, is there any general library of adapter / shell APIs that provides a common abstraction API with various implementations targeting a specific mapping API?
source
share