it's a plugin initialisation bug...
just add the
$('#jmap').addPoint('18.3437','-64.7152', false, 'Point1',
false, false);
to
check by if of the jmap plugin initialisation (usually any plugins
create and id or class, by which u can find out if it has been loaded,
look in the firebug in html for a clue )
On Sep 10, 8:07 pm, Matt Vance <[EMAIL PROTECTED]> wrote:
> I'm a javascript novice and I'm working with the jMaps plugin for
> jQuery to add Yahoo Maps to a site. For basic maps, the plugin is
> working great; however, I'm having trouble getting its addPoint
> function to work. When I try the following script, the map displays
> but the point doesn't:
>
> $('document').ready(function(){
>         $('#jmap').jmap({
>           provider: 'yahoo',
>           maptype: "map",
>           zoom: 5,
>           center: [18.335298917917967,-64.73007202148438]});
>         $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1',
> false, false);
>
> });
>
> I can add the point via the Firebug console just fine, by typing in
> the addPoint line directly. My guess is that the map isn't yet "ready"
> when I'm trying to add the point in the script. I've tried lots of
> other variations, but without any luck. Any tips on how to get the
> point added from inside the script?
>
> Thanks!

Reply via email to