Jump to content

Несколько API Gogle Maps на одной странице


Vandeko
 Share

Recommended Posts

Чтоб не засорять кодами дам ссылки на свои безответные вопросы .

__________________________________________________________________________________________________

http://watasi.ru/javascript/библиотеки/google_map_v3/введение

Инструкция которая мне не помогла

___________________________________________________________________________________________________

http://guru.google.co.th/guru/thread?tid=71a5c17b650e8d8a

код который я не знаю где и каким чудом вставить

___________________________________________________________________________________________________

http://otvety.google.ru/otvety/thread?tid=1dda1e948342484c&table=%2Fotvety%2Fuser%3Fuserid%3D15184900340716064511%26tab%3Dwtmtoa

Рабочий код вставки одной карты с меткой+тень настроенный подсебя с сайта "http://ruseller.com/"

___________________________________________________________________________________________________

http://demiart.ru/forum/index.php?showtopic=177391

Ответ на мой вопрос , но при настройке чет не работает + нет меток

а вот и он :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Love Story</title>
<style type="text/css">
body {
background-color: #e3c79f;
overflow:hidden;
vertical-align:middle;
}
</style>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.categoryChosen="Slots";
flashvars.assets="http://namefosite.net/flash/assets/";

var params = {};
params.menu = "false";
params.wmode = "transparent";

var attributes = {};
attributes.id = "myContent";
attributes.name = "myContent";

swfobject.embedSWF("myContent.swf", "myContent", "172", "233", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

swfobject.embedSWF("myContent2.swf", "myContent2", "593", "52", "9.0.0", "expressInstall.swf");
</script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var maps = {
"map_canvas1" : { coords: [49.924786, 36.289986], size: [186, 283], zoom: 15, title: "Харьков" },
"map_canvas2" : { coords: [48.357222, 35.100556], size: [186, 283], zoom: 15, title: "Днепропетровск" },
"map_canvas3" : { coords: [47.867003, 35.315692], size: [186, 283], zoom: 15, title: "Запорожье" }
}

function initMap(elem, data) {
elem.style.width = data.size[0] + "px";
elem.style.height = data.size[1] + "px";
elem.title = data.title;
var options = {
zoom: data.zoom,
center: new google.maps.LatLng(data.coords[0], data.coords[1]),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(elem, options);
}

function initAllMaps() {
for (var s in maps) {
initMap(document.getElementById(s), maps[s]);
}
}
</script>
</head>
<body onload="initialize()">
<!--div_#1 bacground_#1-->
<div align="center" style="background-image:url(img/fon.jpg);
background-repeat:no-repeat;
width:1000px;
height:600px;
margin-bottom:600px;
margin:auto;">
<!--div_#2 bacground_#2-->
<div style="position:absolute;
margin-left:57px;
margin-top:58px;
background:#e3c79f;
width:699px;
height:491px;
background-image:url(img/kontakty.jpg);">

<!--map-->
<div id="map_canvas" style="
margin: 12px 0;
border: 2px solid #ccc;
position:relative;
width:186px;
height:283px;
left:25px;
top:142px;">
</div>
<!--map2-->
<div id="map_canvas2" style="
margin: 12px 0;
border: 2px solid #ccc;
position:relative;
width:186px;
height:283px;
left:252px;
top:-155px;">
</div>
<!--map3-->
<div id="map_canvas3" style="
margin: 12px 0;
border: 2px solid #ccc;
position:relative;
width:186px;
height:283px;
left:477px;
top:-454px;">
</div>
<!--close_div_#2-->
</div>
<!--menu-->
<div style="position:relative;
width:172px;
height:233px;
left:350px;
top:198px;">
<div id="myContent">
<p><a href="http://www.macromedia.com/go/getflashplayer" title="Перейти на сайт adobe для установки актуальної версії flash">Установити актуальну версію Flash</a></p>
</div>

</div>
<!--menu2-->
<div style="position:relative;
width:593px;
height:52px;
left:-202px;
top:316px;">

<div id="myContent2">
<!--<![endif]-->
<p><a href="http://www.macromedia.com/go/getflashplayer" title="Перейти на сайт adobe для установки актуальної версії flash">Установити актуальну версію Flash</a></p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</div>
</div>

</body>
</html>

___________________________________________________________________________________________________

Вот что должно в результате выйти :

image_4e32ca574ea46.jpg

Уже неделю мучаюсь с етими ... картами помогите и я буду стчастлив и благодарен!!!

Edited by Vandeko
Link to comment
Share on other sites

 Share

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy