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? And is their a way I can express that value as to use it as an array holder id like array[*the infowindow value*] ; 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. >> >> -- Larry >> >> > >> > >> > >> > >> > > > On Fri, Oct 15, 2010 at 1:18 PM, [email protected] >> > > > <[email protected]>wrote: >> > >> > > > > On Oct 15, 11:01 am, "ZAPP! Rowsdower" <[email protected]> wrote: >> > > > > > 30 and 36. If I overlay the kml w/ KmlLayer will >> .Contains(latlng) know >> > > > > > the boundaries for each districts? >> > >> > > > > The main issue is that kmlLayer doesn't allow access to the >> polygons >> > > > > (as far as I know). Which means there is nothing to >> > > > > run .Contains(latlng) on... >> > >> > > > > Those 2 district use >> > > > > <StyleMap id="trb9050"> >> > > > > <Pair> >> > > > > <key>normal</key> >> > > > > <styleUrl>#trb9051</styleUrl> >> > > > > </Pair> >> > > > > <Pair> >> > > > > <key>highlight</key> >> > > > > <styleUrl>#trb905</styleUrl> >> > > > > </Pair> >> > > > > </StyleMap> >> > >> > > > > geoxml3 doesn't support StyleMap definitions (yet). All the >> others >> > > > > use <Style> tags, not <StyleMap>, can you change that and see if >> it >> > > > > works? >> > >> > > > > -- Larry >> > >> > > > > > Then I could use a case conditional to >> > > > > > point the users latlng to the correct voting location. >> > >> > > > > > On Fri, Oct 15, 2010 at 12:31 PM, [email protected] < >> > > > > [email protected] >> > >> > > > > > > wrote: >> > > > > > > On Oct 15, 10:15 am, "ZAPP! Rowsdower" <[email protected]> >> wrote: >> > > > > > > > Any help at all would be greatly appreciated man I got this >> wkend to >> > > > > > > figure >> > > > > > > > it out. I dont have much javascript experience other then >> your >> > > > > average >> > > > > > > > scriptkiddie skills. I like to use php. >> > >> > > > > > > Do you know which districts are not showing up? That might >> help me >> > > > > > > localize the problem. >> > >> > > > > > > I ran the kml through a validator, it had minor problems, but >> nothing >> > > > > > > that should cause this. >> > >> > > > > > > I'm not sure I would use geoxml3 for a time critical project >> right >> > > > > > > now, and when you decide to use it, I would suggest using a >> local >> > > > > > > copy. The version in the project may change and break your >> map at any >> > > > > > > time (as can the development version of the v3 api...) >> > >> > > > > > > -- Larry >> > >> > > > > > > > On Fri, Oct 15, 2010 at 11:59 AM, [email protected] < >> > > > > > > [email protected] >> > >> > > > > > > > > wrote: >> > > > > > > > > On Oct 15, 9:37 am, "ZAPP! Rowsdower" <[email protected]> >> wrote: >> > > > > > > > > >http://kaufmanmaps.com/votemap.html >> > >> > > > > > > > > Your kml looks OK on google maps: >> > >> > > > > >> http://maps.google.com/maps?client=gmail&q=http:%2F%2Fkaufmanmaps.com. >> > > > > > > .. >> > > > > > > > > (except it is all the same color) >> > >> > > > > > > > > I would expect it is a problem with geoxml3's polygon >> handling. >> > > > > I'll >> > > > > > > > > look into it. I appreciate the test case. >> > >> > > > > > > > > You may want to look at the example again, I updated it to >> handle >> > > > > > > > > points outside the polygons, you may want to modify it to >> handle >> > > > > them >> > > > > > > > > some other way. >> > >> > > > > > > > > -- Larry >> > >> > > > > > > > > > <http://kaufmanmaps.com/votemap.html>After I get the >> overlay >> > > > > looking >> > > > > > > > > right I >> > > > > > > > > > need to work out the rest. When someone searches for >> their >> > > > > address >> > > > > > > the >> > > > > > > > > > little infobubble that pops up will have a "where do I >> vote link" >> > > > > > > that >> > > > > > > > > will >> > > > > > > > > > let them what voting precinct their in and call the >> directions >> > > > > > > service >> > > > > > > > > > giving them directions from their address to a >> predefined latlong >> > > > > of >> > > > > > > the >> > > > > > > > > > correct voting location provided by another point kml I >> have. Or >> > > > > > > maybe an >> > > > > > > > > > array with the latlongs in it if thats faster. >> > > > > > > > > > <http://kaufmanmaps.com/votemap.html> >> > > > > > > > > > On Fri, Oct 15, 2010 at 9:57 AM, [email protected] >> > > > > > > > > > <[email protected]>wrote: >> > >> > > > > > > > > > > On Oct 15, 7:30 am, "ZAPP! Rowsdower" < >> [email protected]> >> > > > > wrote: >> > > > > > > > > > > > I guess its the 3rd party Its the v3_epoly. I tried >> using a >> > > > > kml I >> > > > > > > > > made >> > > > > > > > > > > > with "mapwindow" but it left out a few shapes. >> Something is >> > > > > > > getting >> > > > > > > > > > > > lost in the translation. Whats the best method of >> converting >> > > > > a >> > > > > > > shp to >> > > > > > > > > > > > a kml ...or a xml? Less symbology the better (no >> outlines >> > > > > etc)? I >> > > > > > > > > > > > think I need a xml so .Contains(latlng) knows when a >> point I >> > > > > > > lookup >> > > > > > > > > is >> > > > > > > > > > > > within the boundaries of a certain polygon huh? >> > >> > > > > > > > > > > We could help if you provided a link to your map that >> doesn't >> > > > > work. >> > >> > > > > > > > > > > -- Larry >> > >> > > > > > > > > > > > On Fri, Oct 15, 2010 at 8:29 AM, >> [email protected] >> > > > > > > > > > > > <[email protected]>wrote: >> > >> > > > > > > > > > > > > On Oct 15, 6:21 am, shaun York <[email protected]> >> wrote: >> > > > > > > > > > > > > > Im trying to overlay 42 poly's that cover my >> county. They >> > > > > > > don't >> > > > > > > > > > > > > > display though. Is there anything special I have >> to pass >> > > > > > > shp2text >> > > > > > > > > to >> > > > > > > > > > > > > > generate the correct .xml? I can draw poly's >> with xml >> > > > > with >> > > > > > > geoxml >> > > > > > > > > on >> > > > > > > > > > > > > > google right? >> > >> > > > > > > > > > > > > If you are using the v2 Google Maps API. This >> group is >> > > > > about >> > > > > > > the >> > > > > > > > > v3 >> > > > > > > > > > > > > Google Maps API. The equivalent built in is >> KmlLayer, not >> > > > > > > GGeoXml, >> > > > > > > > > > > > > unless you are asking about the GeoXml 3rd party >> kml >> > > > > parser, >> > > > > > > which >> > > > > > > > > > > > > works with v2. >> > >> > > > > > > > > > > > > -- Larry >> > >> > > > > > > > > > > > > -- >> > > > > > > > > > > > > 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]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B >> [email protected]> >> > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > > > > > <google-maps-js-api-v3%2B >> [email protected]> >> > > > > > > > > > > > > . >> > > > > > > > > > > > > For more options, visit this group at >> > >> > > > > > > >> http://groups.google.com/group/google-maps-js-api-v3?hl=en.-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]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B >> [email protected]> >> > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > > > > > . >> > > > > > > > > > > For more options, visit this group at >> > >> > > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.-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]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B >> [email protected]> >> > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > <google-maps-js-api-v3%2b[email protected]> >> > > > > > > > > . >> > > > > > > > > For more options, visit this group at >> > > > > > > > > >> http://groups.google.com/group/google-maps-js-api-v3?hl=en.-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]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B >> [email protected]> >> > > > > <google-maps-js-api-v3%2b[email protected]>... >> > >> > read more » >> >> -- >> 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]<google-maps-js-api-v3%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-maps-js-api-v3?hl=en. >> >> > -- 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.
