<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="js/modestmaps.js"></script> <script type="text/javascript" src="js/modestmaps.markers.js"></script> <script type="text/javascript" src="js/htmapl.js"></script> <script type="text/javascript" src="js/js.js"></script> <div class="map" data-center="52.083, 4.325" data-zoom="15" data-provider="bing"> <div class="controls"> <button data-action="zoomIn">+</button> <button data-action="zoomOut">-</button> </div> <div class="marker" data-location="52.07971, 4.34285"> <a href="#">Ministerie van Sociale Zaken en Werkgelegenheid</a> </div> <div class="marker" data-location="52.07920, 4.32139"> <a href="#">Ministerie van Veiligheid en Justitie</a> </div> <div class="marker" data-location="52.07913, 4.32129"> <a href="#">Ministerie van Binnenlandse Zaken en Werkgelegenheid</a> </div> <div class="marker" data-location="52.08255, 4.31716"> <a href="#">Ministerie van Financiële Zaken</a> </div> <div class="marker" data-location="52.07994, 4.31320"> <a href="#">Ministerie van Algemene Zaken</a> </div> </div>
Of bekijk html/overzicht-ministeries-htmapl.html
div.map { width: 100%; height: 500px; } div.map .controls { position: absolute; z-index: 99; right: 4px; top: 4px; } div.map .controls button { cursor: pointer; font-weight: bold; color: white; background-color: #f00; border: 1px solid white; border: 1px solid rgba(255,255,255,.3); line-height: 1.5em; margin: 0; } .marker a { display: inline-block; color: inherit; text-decoration: none; font-weight: bold; color: #fff; background: #f00; padding: 10px; width: 0; height: 0; margin: -5px 0 0 -5px; font-size: 0; overflow: hidden; border: 2px solid #fff; border-radius: 20px; transition: .1s; } .marker a:hover, .marker a:focus { width: auto; height: auto; font-size: 12px; padding-left: 20px; } .marker:hover, .marker:focus { z-index: 999; }
Of bekijk css/overzicht-ministeries-htmapl.css