Info box instead of tooltip as suggested by @fredj
This commit is contained in:
@@ -43,6 +43,11 @@
|
||||
</div>
|
||||
<div id="tags">vector, geojson, style</div>
|
||||
</div>
|
||||
<div class="span4 pull-right">
|
||||
<div id="info" class="alert alert-success">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ map.on('mousemove', function(evt) {
|
||||
for (var i = 0, ii = features.length; i < ii; ++i) {
|
||||
info.push(features[i].get('name'));
|
||||
}
|
||||
document.getElementById('map').title = info.join(', ');
|
||||
document.getElementById('info').innerHTML = info.join(', ') || ' ';
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user