Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ymaps.ready(init);
- function init(){
- map = new ymaps.Map ("ymap", {
- center: [55.784970, 37.661290],
- zoom: 17
- });
- map.controls.add('mapTools');
- map.controls.add('typeSelector');
- map.controls.add('zoomControl');
- map.controls.add('scaleLine');
- var placemark = new ymaps.Placemark(
- [55.784970, 37.661290],
- {},
- {
- iconImageHref: '/images/flower.png',
- iconImageSize: [53, 82],
- iconImageOffset: [-40, -68]
- }
- );
- map.geoObjects.add(placemark);
- var polyline = new ymaps.Polyline([
- [ 55.779900, 37.665900 ],
- [ 55.779800, 37.665600 ],
- [ 55.780430, 37.664832 ],
- [ 55.782012, 37.663543 ],
- [ 55.783024, 37.662811 ],
- [ 55.783712, 37.662043 ],
- [ 55.784730, 37.660764 ],
- [ 55.784858, 37.661000 ]
- ],
- {},
- {
- strokeColor: '#467e41',
- strokeWidth: 6,
- strokeStyle: 'solid',
- strokeOpacity: 0.7
- });
- map.geoObjects.add(polyline);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement