2016-07-01 42 views
1

當我嘗試以顯示我的模式地圖我得到這個:單張地圖不能正常顯示引導3.6模式

enter image description here

我沒有在我的控制器angularJS,這是我的html:

<leaflet lf-center="japan" geojson="geojson" geojson-nested="true" height="45vh"></leaflet> 
+0

你有模式打開後載入地圖。顯示更多代碼(載入地圖的模態和JS代碼)。 – makshh

+0

我想實現這個例子:http://tombatossals.github.io/angular-leaflet-directive/examples/0000-viewer.html#/basic/geojson-nested-example這是我的js代碼的http:/ /pastebin.com/3TN6S9LS這裏我的模式:http://pastebin.com/MvDdxcLP – Rajeun

回答

0

試試這個:

$scope.newMeeting = function(session) { 
    $('#meetingModal').modal('show'); 
    map.invalidateSize(); // add this to your existing code 
}; 
+0

這是我第一次使用這個組件,無需任何呼叫(JS側)顯示在地圖的風格,所以我不知道確切位置該地圖被稱爲 – Rajeun

+0

已編輯,試試這個。已經嘗試過 – makshh

+0

,總是出現同樣的問題 – Rajeun