Napisano 12 Styczeń 200718 l Witam, Czy ktos orientuje sie, jak zaimplementowac taka mape na stronke? http://www.masterbud.net/kontakt.html pozdrawiam.
Napisano 12 Styczeń 200718 l wejdziesz sobie w zrodla tej stronki to zobaczysz jak!:P // function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(50.294247+0.008034, 18.665557+0.016462), 15); // Creates a marker at the given point with the given number label function createMarker(point, number) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("MASTERBUD 44-100 Gliwice, ul. Tarnogórska 20"); }); return marker; } // Add 10 markers to the map at random locations var bounds = map.getBounds(); var southWest = bounds.getSouthWest(); var northEast = bounds.getNorthEast(); //var lngSpan = northEast.lng() - southWest.lng(); //var latSpan = northEast.lat() - southWest.lat(); //for (var i = 0; i var point = new GLatLng(southWest.lat() +0.004534, southWest.lng() +0.010692 ); map.addOverlay(createMarker(point, 1)); //} } } //]]>
Napisano 12 Styczeń 200718 l Autor sobie weszlam i probowalam to obczaic, ale jakos to do mnie nie przemawia i prawde mowiac nie wiem, co z tym zrobic :)
Napisano 12 Styczeń 200718 l Ta mapka to poprostu gotowy skrypt odwołujący się do Google maps czy jakoś tak. Pogrzeb po servisach googli musi tam pisac jak cos takiego wstawic. Będziesz musiała też pogrzebać w tym function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(50.294247+0.008034, 18.665557+0.016462), 15); // Creates a marker at the given point with the given number label function createMarker(point, number) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("MASTERBUD 44-100 Gliwice, ul. Tarnogórska 20"); }); return marker; } W tych parametrach masz ustawiane gdzie ma się centrować mapa, oraz gdzie i jak opisany będzie ten "dzyndzelek" :)
Napisano 12 Styczeń 200718 l A google zezwala na coś takiego na firmowych stronach? Tzn. na publikowanie ich map na stronach? Nie przeczytałem licencji, ale może ktoś to zrobil ;)
Napisano 13 Styczeń 200718 l Autor Tu http://www.google.com/apis/maps/ sa informacje na ten temat. Mozna sobie licencje przeczytac i w ogole :) pozdrawiam.
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto