My polygons weren't drawing because of bad code. Fixed, with the hints
given by reading the GLog I added to my local page.
They weren't hiding/showing because they weren't drawing. Of course.

WOWEEEE! YIPPEE TIE ONE ON! It works. It's brilliant. Brilliant!
Larry, you fixed the sidebar without even being asked! This is
amazing. Larry, you are a gentleman, a scholar and my savior. How you
ever have figured out all this stuff with Google Maps astounds me. OK,
my newest test page is up at 
http://lovebunnies.luckypro.biz/01_stuff/roman_holiday/romanholidaymap_polys.html
and new XML doc is uploaded, too. Watch that puppy sling some data.
This is the way it should work.

LOOK AT THOSE PERFECT TINY POLYGONS! Garden sheds? Hah, I'm going to
map flower pots. Don't think I won't either. Hah.

There are a few little oddities remaining...
1. The margutta category appears in the sidebar when the map opens.
Yet it gets removed when checkboxes operate.
2. My polygons aren't clickable. I have to read the documentation and
posts here.
3. I want to fill them. Same thing: read more.


On Mar 10, 1:14 pm, "[email protected]" <[email protected]>
wrote:
> On Mar 10, 8:28 am, BuckyE <[email protected]> wrote:
>
> > I hope I can get this reply to post. My godforsaken ISP --which shall
> > remain nameless to stop this thread being googled by a million irate
> > customers-- won't let me upload files at the moment. So I'll run some
> > errands for a couple hours and see what I can do later.
>
> > Larry, your demo page is brilliant! Now I have to learn how to write
> > the GLog. Neato! I don't see the lines drawing on your page (Macintosh
> > Firefox v3.0.6, OS 10.4.11). But I have a new page that draws the
> > lines, but not the -gons.
>
> There is no code in my page (nor was there any in your page when I
> looked) to display polygons.
>
>
>
> > I've got a page local, that I can't upload, drawing the lines, but not
> > the -gons. And your comment about "hard to see" brings up an issue all
> > around. At the normal zoom level for my map, you're right, the
> > margutta lines and -gons are just a smudge. I could see that when we
> > were working on the Garden Shed Size Polygon Problem. So I've managed
> > to enable the "Show via Margutta" checkbox to zoom in on that area and
> > switch to satellite. Now, though, I'm uncertain how the map should
> > work. I'm coming around to thinking the margutta stuff should only
> > Show and appear in the sidebar when the Show via Margutta checkbox is
> > checked and the map is zoomed in.
>
> > I can't show/hide my lines and -gons. I've read that function may not
> > always be available? am I running into that problem?
>
> How are you testing it?
>
>
>
> > I'll post here again when I can get a new page up. Can't thank you
> > enough for sticking with this. The GLog functions are amazing! Such a
> > help. OK, see everyone in a few hours.
>
> > On Mar 10, 9:15 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Mar 10, 6:02 am, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Mar 10, 5:29 am, BuckyE <[email protected]> wrote:
>
> > > > > Terrific! Thank you for such a great fine tooth combing. The page is
> > > > > riddled with stupid copying errors. I found some more. Now the sidebar
> > > > > works, kind of. At least the script is reading the labeling from the
> > > > > XML, so I see the names in the sidebar.
>
> > > > > The polylines and -gons aren't being drawn. And I see I've got an
> > > > > unanticipated problem with my side bar. The current code calls a
> > > > > mouseover that switches icons, which of course is irrelevant and
> > > > > broken for the poly sidebar items. I have to find a way to
> > > > > discriminate between the polys and the iconed markers and do different
> > > > > things for each. I'm getting there! Thanks, thanks, thanks!
>
> > > > I noticed some of 
> > > > those:http://www.geocodezip.com/romanholidaymap_polys.asp
>
> > > BTW - your polylines are being drawn (at least in Chrome), it is just
> > > really hard to see yellow on top of the map or hybrid tiles, and the
> > > map doesn't center and zoom to show the area (you have to move to see
> > > them).
>
> > >   -- Larry
>
> > > > > On Mar 9, 8:48 pm, "[email protected]" <[email protected]>
> > > > > wrote:
>
> > > > > > On Mar 9, 5:22 pm, "[email protected]" <[email protected]>
> > > > > > wrote:
>
> > > > > > > On Mar 9, 5:11 pm, BuckyE <[email protected]> wrote:
>
> > > > > > > > OK, you guys knew that if you ignored me long enough I'd do 
> > > > > > > > something.
> > > > > > > > The latest version of my test map is 
> > > > > > > > athttp://lovebunnies.luckypro.biz/01_stuff/roman_holiday/romanholidayma....
> > > > > > > > I've managed to get the code reading the XML doc and putting in
> > > > > > > > something for polylines. They even show up as a category in my
> > > > > > > > sidebar!
>
> > > > > > > > But the text in the sidebar says "undefined," and I get a 
> > > > > > > > Firebug
> > > > > > > > error that points to a Google script. Sadly, that tells me 
> > > > > > > > nothing.
> > > > > > > > Can anyone get me further along? That would be greatly 
> > > > > > > > appreciated.
>
> > > > > > > Your function  createmarguttalines
> > > > > > > is defined as:
> > > > > > >       function createmarguttalines
> > > > > > > (pts,color,width,label,html,lat,lng,header,category) {
>
> > > > > > > but you call it with:
> > > > > > >           var line = createmarguttalines(pts,color,width);
> > > > > > > Therefore the label,html,lat,lng,header,category parameters are 
> > > > > > > not
> > > > > > > defined.
>
> > > > > > Also, this line:
> > > > > >           var points = GXml.value(lines[a].getElementsByTagName
> > > > > > ("point"));
>
> > > > > > shouldn't be calling GXml.value on the array of point elements that
> > > > > > are being returned...
>
> > > > > >           var points = lines[a].getElementsByTagName("point");
>
> > > > > > your createblackandwhiteMarker function does this:
> > > > > >         marker.myname = label;
>
> > > > > > but your createmarguttalines function does this:
> > > > > >         line.mylabel = label;
>
> > > > > > So when makeSidebar goes to use basemarkerslinespolys[i].myname, it
> > > > > > doesn't exist for the lines...
>
> > > > > >   -- Larry- 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to