You can use an array of locations used to create the Pushpins, and pass them into the fromLocations function on the class. They may mark these locations on the map using pushpins however, this won’t set the map view to show those locations. ![]() One common scenario that developers come across is that they wish to display a set of objects on the map. The following line of code can be used to center the map over Barringer Crater located at coordinates 35.027222, -111.0225 and set the zoom level to 15. For most cases, you will likely use the setView method as this also allows you to specify other view settings, such as setting the center and zoom level. The other is to use the setMapType function. One way is to use the setView function on the map. ![]() There are two different ways to change the map view.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |