New wiki-page
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
position:relative; | position:relative; | ||
width:300px; | width:300px; | ||
height: | height:300px; | ||
} | } | ||
#map-svg{ | #map-svg{ | ||
Line 17: | Line 17: | ||
width:100%; | width:100%; | ||
</style> | </style> | ||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"> | <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"> | ||
$(document).ready(function () { | $(document).ready(function () { |
Revision as of 18:21, 9 August 2017
<style>
- map-container{
position:relative; width:300px; height:300px;
}
- map-svg{
position:absolute; left:0px; top:0px;
}
- map-catcher{
position:absolute; left:0px; top:0px; height:100%; width:100%;
</style> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"> $(document).ready(function () {
$("#map-catcher").mousedown(function (e) { alert(e.offsetX); });
}); </script>