Google maps request returning “Cannot set property 'position' of undefined”

后端 未结 1 1792
慢半拍i
慢半拍i 2020-12-21 17:03

Am trying to display a location on a map using goolge maps, with the function below

function show_map(options) {
            var mapOptions = {
                      


        
相关标签:
1条回答
  • 2020-12-21 17:48

    this works :

    var mapElem = $("#container").find("#map")[0];
    var map = new google.maps.Map(mapElem,mapOptions);
    
    0 讨论(0)
提交回复
热议问题