Google Maps just did the API just like the real thing. So now I want the map to display the hybrid map by default, I have looked through all the Google Documentation , but I cannot find a way to do this.
Thanks in advance!
Have you tried the constructor?
map = new GMap2(document.getElementById("map_canvas"), { mapTypes:[G_HYBRID_MAP] }); map.setCenter(new GLatLng(37.4419, -122.1419), 13); map.setUIToDefault();
you can also pass card type with
map.setCenter(point, zoom, G_HYBRID_MAP);
V3 API :
map.setOptions({ mapTypeId: google.maps.MapTypeId.HYBRID });
, :
map = new GMap2(document.getElementById("map_canvas")); map.setUIToDefault(); map.setMapType(G_HYBRID_MAP);
Here's the documentation .
Source: https://habr.com/ru/post/1706630/More articles:Hash Sort Perl hash hash - sortingHow to make dynamic attributes work in JSP tag files? - javaMost LDAP administrators create LDIF manually? - data-modelingServer design and implementation - javaDefining a table with sqlalchemy using mysql unix timestamp - pythonHow to convert WMD markdown syntax to HTML on my site? - pythonChanging the default modal result form.showModal - event-handlingDeclarative derived properties for mutable models in Java - javaTracking MySQL Database Changes - databaseWhy is there no dynamic bit pattern in the function argument? - binaryAll Articles