On Oct 19, 8:50 am, "ZAPP! Rowsdower" <[email protected]> wrote:
> I thought this would work

1. please don't post code to the group, it gets horribly mangled.
2. the createPolygon function on my version is not useful, it is from
an example that used egeoxml and the v2 API.
3. I am working on a proof of concept that uses a user defined
createPolygon function with geoxml3, but more for developing that
functionality in geoxml3 than to solve your problem.  The current
version adds an <address> tag to your kml with an address that could
be used for the directions request.

> That what I'm trying to accomplish but I dont even get a map with this:
>

4. This information is useful, an would allow me to put together a
proof of concept, but it would be more useful on a live page so I
could see why what you are attempting doesn't work with a debugger.  I
don't see why it shouldn't work in theory, but I am not going to
attempt to unmangle the code and understand it. Do you have a link to
this version on a live site?

  -- Larry

> //Voting Locations:    Array element id = voting pct!
>     var Vloc = new Vloc(43);
>         Vloc[1] = '113 n jackson st kaufman tx 75142';
>         Vloc[2] = '302 s washington kaufman tx 75142';
>         Vloc[3] = '1003 fm 741 forney tx 75146';
>         Vloc[4] = '5210 n fm 148 crandall tx 75114';
>         Vloc[5] = '225 baker street terrell tx 75160';
>         Vloc[6] = '30108 fm 429 terrell tx 75161';
>         Vloc[7] = '1717 n frances st terrell tx 75160';
>         Vloc[8] = '408 e college st terrell tx 75160';
>         Vloc[9] = '12777 fm 2728 terrell tx 75188';
>         Vloc[10] = '8765 fm 148 scurry tx 75158';
>         Vloc[11] = '201 main st rosser tx 75157';
>         Vloc[12] = 'fm 3094 scurry tx 75158'; // need box
> number*****************************
>         Vloc[13] = 'fm 2515/cr 110 kaufman tx 75152';
>         Vloc[14] = '6013 fm 429 kaufman tx 75142';
>         Vloc[15] = '103 n main st kemp tx 75147';
>         Vloc[16] = '129 e market st mabank tx 75147';
>         Vloc[17] = '110 hwy 3039 combine tx 75159';
>         Vloc[18] = '500 w lewis fm 3039 crandall tx 75114';
>         Vloc[19] = '203 main st terrell tx 75160';
>         Vloc[20] = '201 poetry rd terrell tx 75160';
>         Vloc[21] = '5780 fm 2965 hiram tx 75160';
>         Vloc[22] = '1175 cr 278 kaufman tx 75142';
>         Vloc[23] = '8450 n st hwy 34 terrell tx 75160';
>         Vloc[24] = '1377 cr 274 kaufman tx 75142';
>         Vloc[25] = '200 e main st forney tc 75126';
>         Vloc[26] = '500 s frances st terrell tx 75160';
>         Vloc[27] = '201 poetry rd terrell tx 75160';
>         Vloc[28] = '3790 s houston st kaufman tx 75160';
>         Vloc[29] = '10630 fm 740 forney tx 75142';
>         Vloc[30] = '6430 fm 148 kaufman tx 75142';
>         Vloc[31] = 'fm 1895/fm 2860 kemp 75143';  ///anither one with no box
> number
>         Vloc[32] = '413 pinson rd forney tx 75126';
>         Vloc[33] = '20211 st hwy 274 kemp trx 75143';
>         Vloc[34] = '1400 s rockwall terrell tx 75160';
>         Vloc[35] = '6877 fm 2727 kaufman tx 75142';
>         Vloc[36] = '3637 hwy 175 kaufman tx 75142';
>         Vloc[37] = '101 e main st forney tx 75126';
>         Vloc[38] = '113 hwy 205 terrell tx 75160';
>         Vloc[39] = 'fm 90 n mabank tx 75147'; ///no box num
>         Vloc[40] = 'US hwy 80 forney tx 75126'; ///no number
>         Vloc[41] = '1307 s elm kemp tx 75143';
>         Vloc[42] = '6430 s fm 148 kaufman tx 75142';

>
> On Tue, Oct 19, 2010 at 1:43 AM, [email protected]
> <[email protected]>wrote:
>
>
>
> > On Oct 18, 1:24 pm, "ZAPP! Rowsdower" <[email protected]> wrote:
> > > One last thing on this project geo.
>
> > > After someone hit the button and gets their marker. infowindow has
> > > the number of the precinct their in right under the address w/
> > > contentString += "<br>"+point+"<br>polygon#"+i;
>
> > > How can I reference that number in js to use in with the directions
> > > service?
>
> > I'm not sure what you are trying to do.  I would assume you probably
> > have an address of a polling place for each district and want to
> > generate directions from the entered address to the polling place.
>
> > The number of the polygon in the kml file is the value of "i" inside
> > the loop that is checking .Contains.  You can save that in a variable
> > and use it after the loop exits (like I use contentString after the
> > loop exits).  The .name of the polygon is
> > geoXml.docs[0].placemarks[i].name.
> > If you have an array that maps polygon number (or district number
> > which is I believe .name), you can use that to get an address of a
> > polling place or the coordinates of a polling place.
>
> > Then with the two addresses you can call the directions service to
> > generate directions (which I thought was the goal).
>
> > > And is their a way I can express that value as to use it as an
> > > array holder id like array[*the infowindow value*] ;
>
> > I'm not sure what that means, but I think the answer is yes.
>
> >  -- Larry
>
> > > On Mon, Oct 18, 2010 at 9:00 AM, ZAPP! Rowsdower <[email protected]>
> > wrote:
> > > > Nice, appreciate the help. I got it looking right now. Now just have to
> > > > figure out the functionality.
>
> > > > On Sun, Oct 17, 2010 at 12:51 AM, [email protected] <
> > > > [email protected]> wrote:
>
> > > >> On Oct 15, 2:00 pm, "[email protected]" <[email protected]>
> > > >> wrote:
> > > >> > On Oct 15, 12:21 pm, "[email protected]" <[email protected]>
> > > >> > wrote:
>
> > > >> > > On Oct 15, 12:19 pm, "ZAPP! Rowsdower" <[email protected]> wrote:
>
> > > >> > > > Removed "Map" from the tag. Still cant see 30 and 36.
>
> > > >> > > When I look at those 2 on Google Maps:
> > > >>http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=http:%2F%.
> > ..
>
> > > >> > > They have 2 entries, the others seem to only have one.
> > > >>http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=http:%2F%.
> > ..
>
> > > >> > > That is probably what is exposing the issue.
>
> > > >> > Found it. You have multiple <Polygon> nodes under the
> > <MultiGeometry>
> > > >> > node in those two cases.  I didn't consider that case when I
> > > >> > implemented polygons.
>
> > > >> >http://www.geocodezip.com/geoxml3_test/votemap_fixed.html
>
> > > >> > When I have a chance I will change geoxml3 to handle that case.
>
> > > >> I believe geoxml3 will now handle your polygons.  There is a problem
> > > >> with the .Contains function of epoly, it assumes a single polygon.
> > > >> Right no the map considers "Gastonia TX" outside the area, because it
> > > >> isn't in the first small piece of the polygon.
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -

-- 
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 [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-js-api-v3?hl=en.

Reply via email to