Previous words
Because the project to use the map data abroad, so before the use of Here map, but Hmap development ecosystem is too small, too many problems are not answered, a lot of functions are to repeat the wheel, recently gmap back to our arms, so immediately change back to Gmap
May gmap left too long, online a lot of tutorials are too old, with the official website to the example are different, so here follow the example of the official website to record, convenient for everyone. Then the API is being stripped down and then released.
Simple Map
This is the first example of the official website, but directly with the official website example in the mainland or load is not the map, the request of the JS address or to the corresponding change
The specific code is as follows:
<! Doctype html> Your_api_key is what you are going to apply for, and then this address has been replaced by a domestic available address, you can directly use
The following callback is the callback method called after the load is complete initmap
The first article is simple, the back of the rich
"Google Map Development Notes (1)" Simple Map