Answer the question
In order to leave comments, you need to log in
How to add a marker to google maps and Yandex maps so that everyone can see it when viewing the map?
Hello.
Who in the subject please explain how you can create a marker so that it is always on the map and everyone sees it?
Here, for example, companies, cafes, shops are marked on the map,
how can I make the same marker of my company?
Answer the question
In order to leave comments, you need to log in
$(function(){
$('.menu ul li a').each(function(){
if(document.location.pathname == $(this).attr('href')){
$(this).parent().addClass('active');
}
});
});
<div class="menu>
<ul>
<li><a>Первый пункт</a></li>
<ul>
<li><a>Первый пункт</a></li>
<li><a>Второй пункт</a></li>
</ul>
<li><a>Второй пункт</a></li>
</ul>
</div>
Well, it depends on the cms template setting, and not on the frontend. If the site is without cms, then with handles it is easy to prescribe the class of the active item for the necessary menu items on each page. Type:
<ul>
<li class="current"><a>Первый пункт</a></li>
<ul>
<li class="current"><a>Первый пункт</a></li>
<li><a>Второй пункт</a></li>
</ul>
<li><a>Второй пункт</a></li>
</ul>
markers on the map are put down by Yandex and Google themselves, but based on the information received. You can send them information:
- Yandex - https://sprav.yandex.ru/
- Google - https://www.google.com/business/befound.html
But you can add only if this object is yours - if it is yours dealer, you can't.
Try watching the latest Google Webmaster Hangouts . There have already been asked similar questions many times and there is an exact explanation, you can also ask the question yourself on the Google+ page or in the next meeting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question