Multiple maps with markers on same page - new glitch!

92 views
Skip to first unread message

Kashins DaWeeD

unread,
Jul 19, 2010, 6:05:52 AM7/19/10
to Google Maps JavaScript API v3
I discovered some new glitch in marker displaying. Problem is - 3
maps, with same center point, different zoom level. Same marker in
same coords on all those maps. So - this morning I discovered, that
marker is shown only on one of these maps. Till now it all was ok on
all pages like that, but now all those pages doesn't show markers
correctly...

Few of those pages (all are same, but different coords)(marker
displays only on right-bottom map):

http://www.amazing-latvia.lv/obj/cesu_sveta_jana_baznica/karte.html

http://www.amazing-latvia.lv/obj/tris_ozoli_rezekne/karte.html

http://www.amazing-latvia.lv/obj2/augstkalne_mezmuizas_pils/karte.html

Kashins DaWeeD

unread,
Jul 19, 2010, 7:47:02 PM7/19/10
to Google Maps JavaScript API v3
> Till now it all was ok on
> all pages like that, but now all those pages doesn't show markers
> correctly...


I'll explain better - there should be 1 marker on each map. Few days
ago it was. And I didn't change anything in code, so I'm completely
stuck! ;)

Kashins DaWeeD

unread,
Jul 19, 2010, 7:54:14 PM7/19/10
to Google Maps JavaScript API v3
Ok.. found problem - it was newest update for maps, that didn't seem
to work... I added "v=3.0" in script src, so now it works again... :D

William

unread,
Jul 19, 2010, 8:24:40 PM7/19/10
to Google Maps JavaScript API v3
On Jul 20, 9:54 am, Kashins DaWeeD <kashin...@gmail.com> wrote:
> Ok.. found problem - it was newest update for maps, that didn't seem
> to work... I added "v=3.0" in script src, so now it works again... :D

yeah I can confirm the problem:

Missing Markers:
http://www.william-map.com/20100720/1/v3.htm

OK with v=3.0
http://www.william-map.com/20100720/1/v3_0.htm

...

William

unread,
Jul 19, 2010, 11:41:05 PM7/19/10
to Google Maps JavaScript API v3
just to confirm, the v3 problem arises in version "3.1.7a" (which was
the API version 3 hours ago), but now version "3.1.6" loads and the
markers are visible on all maps. It appears that release candidates
are being beta tested in production and then reverted once bugs are
reported.

Ben Appleton

unread,
Jul 19, 2010, 11:50:07 PM7/19/10
to google-map...@googlegroups.com
Right: you are on version 3.1 which is the "latest development" version:
http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning

If you need stability, you can select version 3.0 which is the "frozen" version.

We're sorry for the many recent changes; we've fixed a lot of bugs but
introduced a couple more.

> --
> You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

William

unread,
Jul 20, 2010, 12:55:54 AM7/20/10
to Google Maps JavaScript API v3
On Jul 20, 1:50 pm, Ben Appleton <apple...@google.com> wrote:
>
> If you need stability, you can select version 3.0 which is the "frozen" version.
>
thanks for the explanation. I was wondering which release corresponds
to 3.0? In the changelog, the releases are named according to date of
release, without any minor version (eg I think 3.1.6 = June 17 2010)
http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog

another small point, the doco for 3.0 has a placemarker (to be
determined) link for information about the release.

On this page it says "please consult TBD for information":
http://code.google.com/apis/maps/documentation/javascript/3.0/reference.html

broken link:
http://code.google.com/apis/maps/documentation/javascript/3.0/TBD

Susannah (Google Employee)

unread,
Jul 20, 2010, 12:56:18 AM7/20/10
to Google Maps JavaScript API v3
This bug should be resolved in 3.1 now. Sorry for the breakage.

-Susannah

On Jul 20, 1:50 pm, Ben Appleton <apple...@google.com> wrote:
> Right: you are on version 3.1 which is the "latest development" version:http://code.google.com/apis/maps/documentation/javascript/basics.html...
>
> If you need stability, you can select version 3.0 which is the "frozen" version.
>
> We're sorry for the many recent changes; we've fixed a lot of bugs but
> introduced a couple more.
>

William

unread,
Jul 20, 2010, 12:59:56 AM7/20/10
to Google Maps JavaScript API v3
yep all looks good in 3.1.7b :-)

On Jul 20, 2:56 pm, "Susannah (Google Employee)"
> > > For more options, visit this group athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide quoted text -
>
> - Show quoted text -

Ben Appleton

unread,
Jul 20, 2010, 2:43:20 AM7/20/10
to google-map...@googlegroups.com
We'll follow up on the TBD link.  We'll also specify the version number in future release notes.

Thanks
Ben


--

ddoc

unread,
Jul 20, 2010, 4:39:01 AM7/20/10
to Google Maps JavaScript API v3
Hi,

I modify your code to add a streetview, And I obtain an error on the
method new google.maps.StreetViewPanorama when I defined explicitely
the version of googlemap.
If you do a copy paste, you can see that.
Why I can't define a version correctly?

<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /
>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps JavaScript API v3 Example: 3 Maps</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
v=3.0&sensor=false"></script>
<script type="text/javascript">
var map;
function addMarker(id, center, zoom, markerPosition, map) {
var marker = new google.maps.Marker({
position: markerPosition,
map: map
});



}

function initialize() {
var location = new google.maps.LatLng(57.312139, 25.27173);
var country = new google.maps.LatLng(57.123967, 24.01675);

for (var i = 1; i <= 3; i++) {
if (i == 1) {
map = new
google.maps.Map(document.getElementById("map1"), {
zoom: 1,
center: location,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
//init StreetView
var panoramaOptions = {
addressControl: false,
pov: {
heading: 394,
pitch: -3.333333333333332,
zoom: 1
}
};
panorama = new
google.maps.StreetViewPanorama(document.getElementById("pano"),
panoramaOptions);
map.setStreetView(panorama);
}
addMarker("map1", i == 1 ? country : location, 4 + i * i,
location,map);
}
}
</script>
</head>
<body onload="initialize()">
<div id="map1" style="width:400px; height:250px; margin: 8px;
border: 1pt solid black;"></div>
<div id="map2" style="width:400px; height:250px; margin: 8px;
border: 1pt solid black;"></div>
<div id="map3" style="width:400px; height:250px; margin: 8px;
border: 1pt solid black;"></div>
<div id="pano" style="width: 425px; height: 500px;float:left"></
div>
</body>
</html>
Reply all
Reply to author
Forward
0 new messages