Displaying 1 result from an estimated 1 matches for "disabledefaultui".
2009 Sep 21
0
r34 committed - removed deprecated method draggable, all controls off when first creat...
...: function(element, api){
var me = this;
if ( google && google.maps ){
- var map = new google.maps.Map(element,
{mapTypeId:google.maps.MapTypeId.ROADMAP});
+ // be default no controls and road map
+ var myOptions = {
+ disableDefaultUI: true,
+ mapTypeId: google.maps.MapTypeId.ROADMAP
+ };
+ var map = new google.maps.Map(element, myOptions);
// deal with click
@@ -28,8 +33,15 @@
},
applyOptions: function(){
- var map = this.maps[this.api];
- // TODO: Ad...