Re: Using Polygons and Markers
On Oct 26, 2:37 pm, Andyroo1000 <andrew.abb...@bluesky-world.com>
wrote:
> The map.php page passes coordinate and year info to the output-xml.php
No, it doesn't. You are calling output-xml.php from the line:
GDownloadUrl("output-xml.php", function(data) { ...
and there are no parameters in that request.
--
Marcelo - http://maps.forum.nu
--
> page which returns the formatted XML. Going straight to output-xml.php
> will show an error in the MySQL query.
>
> I tried to implement what you suggested but I think I must have been
> putting it in the wrong place as the polygons stopped appearing,
> leaving just the markers on the map.
> I moved it round, got errors, moved it round some more, got just
> markers and couldn't get it to show the polygons on marker clicks no
> matter what I tried.
> I took what I edited out so that it displayed both the markers and the
> polygons and you can see what is being passed to the map.
>
> Please have another look, let it churn away and you should see what I
> mean.
>
> Cheers,
> -Andrew
>
> On 26 Oct, 12:32, Marcelo <marcelo...@hotmail.com> wrote:
>
> > ... but I don't see any markers on that map, or any attempt at
> > implementing what I suggested in my previous post.
>
> > Start by fixing your PHP, so that you can get some markers on the map:http://www.bluesky-world.com/dev_area/output-xml.php
>
> > Then *try* to implement what I suggested earlier, and if you can't get
> > it to work then post to the forum again.
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > On Oct 26, 10:45 am, Andyroo1000 <andrew.abb...@bluesky-world.com>
> > wrote:
>
> > > Of course, my apologies..!
>
> > >http://tinyurl.com/yfjkqns
>
> > > -Andrew
>
> > > On 23 Oct, 11:20, Marcelo <marcelo...@hotmail.com> wrote:
>
> > > > On Oct 23, 12:10 pm, Andyroo1000 <andrew.abb...@bluesky-world.com>
> > > > wrote:
>
> > > > > Suggestions welcome!!
>
> > > > Suggestion:
> > > > Please read and follow the group's posting guidelines:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-......
>
> > > > --
> > > > Marcelo -http://maps.forum.nu
> > > > --
>
> > > > > -Andrew
>
> > > > > On 22 Oct, 18:45, Marcelo <marcelo...@hotmail.com> wrote:
>
> > > > > > On Oct 22, 6:14 pm, Andyroo1000 <andrew.abb...@bluesky-world.com>
> > > > > > wrote:
>
> > > > > > > Does anyone know of any way of doing this?
>
> > > > > > hmmm ...I wonder if anyone knows.
> > > > > > You happen to be in a group dedicated to the Google Maps API, so I'd
> > > > > > put my money on a "yes" for an answer to that question. ;-)
>
> > > > > > You could add the polygon to its marker as a property, and then add a
> > > > > > click event handler that opens the infoWindow, (not speech bubble),
> > > > > > and in that same event handler toggle the polygon with something like
>
> > > > > > if (marker.polygon.isHidden()) {}
> > > > > > marker.polygon.show();
> > > > > > marker.openIngoWindow(html);}
>
> > > > > > else {
> > > > > > marker.polygon.hide();
> > > > > > map.closeInfoWindow();
>
> > > > > > }
>
> > > > > > Of course you'd need to pass the relevant content of the html variable
> > > > > > to the function that creates the marker and attaches the event
> > > > > > listener.
>
> > > > > > --
> > > > > > Marcelo -http://maps.forum.nu
> > > > > > --- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home