Answer the question
In order to leave comments, you need to log in
How to reduce the length (size) of coordinates in the Yandex.Maps API?
Good afternoon!
There is the following code:
<!DOCTYPE html>
<html>
<head>
<title>Примеры. Метка</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="//api-maps.yandex.ru/2.1-dev/?load=package.full&lang=ru-RU" type="text/javascript"></script>
<script type="text/javascript">
ymaps.ready(init);
function init () {
var myMap = new ymaps.Map("map", {
center: [55.760000, 37.640000],
zoom: 10
});
myMap.events.add(['click'], function(e){
console.log(e.get('coords'));
});
}
</script>
</head>
<body>
<div id="map" style="width:700px; height:700px"></div>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question