Re: MarkerManager will not load

111 views
Skip to first unread message
Message has been deleted

ozgalosch

unread,
Nov 23, 2010, 7:33:27 PM11/23/10
to google-map...@googlegroups.com
The correct file.
index.html

CroNiX

unread,
Nov 23, 2010, 10:32:52 PM11/23/10
to Google Maps JavaScript API v3
Never used markerManager, but I see you create 2 markers but are only
adding the 2nd marker to the manager
mgr.addMarker(marker2,0,17);

try adding the first one you created too.

On Nov 23, 4:33 pm, ozgalosch <oso...@gmail.com> wrote:
> The correct file.
>
>  index.html
> 1KViewDownload

geoco...@gmail.com

unread,
Nov 23, 2010, 10:34:23 PM11/23/10
to Google Maps JavaScript API v3
On Nov 23, 7:31 pm, ozgalosch <oso...@gmail.com> wrote:
> Hi,I'm trying to implement the MarkerManager script, but it won't load.
> I have reduced the code to something really simple but still can't find
> the problem.
>
> It was ages since I was coding for the web, so its probably some stupid
> problem.
>
> I tried using both downloading the script and fetching it from the web
> and put the scripts in correct loading order.
>
> The two points should when correct render next to each other.
>
>  index.html
> 1KViewDownload

A file is not useful. Please post a link to your map that exhibits
the problem if you would like help.

Recommended reading:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/2b3f101fd509919e#

-- Larry

ozgalosch

unread,
Nov 24, 2010, 3:08:36 AM11/24/10
to Google Maps JavaScript API v3
I am trying to implement the MarkerManager script, but it won't load.
The online examples works, it's just my setup at home/server that is
not. A reduced example can be found here:

http://www.mip-map.se/archive/gmaps/markermanager.html

Rossko

unread,
Nov 24, 2010, 4:14:55 AM11/24/10
to Google Maps JavaScript API v3
> http://www.mip-map.se/archive/gmaps/markermanager.html

You are loading the version of MarkerManager for the v2 Maps API ; it
won't work with v3.
See
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/

ozgalosch

unread,
Nov 24, 2010, 4:29:07 AM11/24/10
to google-map...@googlegroups.com
I updated the script to v3 on the server, but it still wont load...

Ralph Ames

unread,
Nov 24, 2010, 7:42:52 AM11/24/10
to google-map...@googlegroups.com
>I updated the script to v3 on the server, but it still won't load...

Try this, it worked ok for me

var mgr = new MarkerManager(map);
google.maps.event.addListener(mgr, 'loaded', function(){
var marker2 = new google.maps.Marker({position: latlng2});
mgr.addMarker(marker2,3,17);
});

Ralph
-
www.easypagez.com/maps/map_index.html
www.easypagez.com/maps/v3_basicmap.html


--
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.


geoco...@gmail.com

unread,
Nov 24, 2010, 7:54:37 AM11/24/10
to Google Maps JavaScript API v3
I get a javascript error:
Line: 958
Error: 'this.getProjection()' is null or not an object

It may have something to do with the way you are using marker manager,
I don't use it that much. Since API v3 is event driven, you may need
to add a listener on the projection_changed event; but I would hope
not.

-- Larry
Reply all
Reply to author
Forward
0 new messages