マップボックスマップを埋め込んでいます。添付の画像からわかるように、マップの中央に空白行が配置されていることがわかりました。
誰かが問題が何であるか知っていますか?
私もtwitter-bootstrapフレームワークを使用しています。
これは私が使用するマップdivhtml/ cssです:
<div class="map"></div>
.map{
max-width:none !important;
width:100% !important;
height:250px !important;
max-height:250px;
position: relative;
margin:0 auto !important;
}
これが私のjsです:
var map = mapbox.map(_element);
map.addLayer(mapbox.layer().id('examples.map-uh4ustwo'));
// Create an empty markers layer
var markerLayer = mapbox.markers.layer();
// Add interaction to this marker layer. This
// binds tooltips to each marker that has title
// and description defined.
mapbox.markers.interaction(markerLayer);
map.addLayer(markerLayer);
map.zoom(3).center({ lat: _json.lat, lon: _json.lon });
// Add a single feature to the markers layer.
// You can use .features() to add multiple features.
markerLayer.add_feature({
geometry: {
coordinates: [_json.lon, _json.lat]
},
properties: {
'marker-color': '#F96363',
'marker-symbol': 'circle-stroked',
/*title: 'Example Marker',
description: 'This is a single marker.'
*/
}
});
ありがとう。