Re: GeoXml icon graphic
Thanks for your patience with me guys.
Left a line in the main IsBrowserCompat.... that errored when I
thought it was in my js.
The getIcon works just fine... and I have added the icon graphic in
the line now... just have
to compensate for dups in the KML file now... and for some reason my
search no longer has any lines show up.
No biggies... I can figure those out..
On Dec 11, 9:22 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Dec 11, 9:02 am, tanos_8888888888 <tanos8888888...@gmail.com>
> wrote:
>
> > In my main search function:
>
> > my syntax is:
> > var checkimg = exml.overlayman.markers[i].getIcon();
>
> > error is:
> > exml.overlayman.markers[0] is undefinedhttp://www.myislamap.com/map.htm
> > Line 207
>
> At that point exml.overlayman.markers.length=0
>
> You need to wait for the kml to arrive from the server abd GeoXml to
> finish processing it before you look in that array. See Mike
> Williams' explanation of asynchronous I/O
> Javascript Concepts: Asynchronous I/Ohttp://econym.org.uk/gmap/async.htm
>
> -- Larry
>
>
>
>
>
> > On Dec 11, 8:44 am, "geocode...@gmail.com" <geocode...@gmail.com>
> > wrote:
>
> > > On Dec 11, 8:40 am, tanos_8888888888 <tanos8888888...@gmail.com>
> > > wrote:
>
> > > > Also tried the
>
> > > > newvar = exml.overlayman.markers[].getIcon()
>
> > > Where did you try this? I assume there was an index of some sort
> > > inside the [].
>
> > > -- Larry
>
> > > > Im lost... sorry...
>
> > > > On Dec 11, 8:23 am, tanos_8888888888 <tanos8888888...@gmail.com>
> > > > wrote:
>
> > > > > Clearly I am not an expert, and I tried extensively to get both the
> > > > > GMarker and geticon
> > > > > to work. I cannot even see any object or arrays listed in the DOM for
> > > > > that match up
> > > > > with the data from the site.
>
> > > > > If someone just has an example somewhere I can view. Thanks
>
> > > > > On Dec 11, 6:50 am, Lance Dyas <lance...@inetnebr.com> wrote:
>
> > > > > > So why did you not try what I suggested? you were already looking at
> > > > > > the right array.
>
> > > > > > tanos_8888888888 wrote:
> > > > > > > Using Firebug I can see both the object I want to use, but cannot get
> > > > > > > the syntax correct.
> > > > > > > Comes up undefined no matter what I try.
>
> > > > > > > exml.overlayman.kml[].marks[].title and
> > > > > > > exml.overlayman.kml[].marks[].href
>
> > > > > > > any help here is great
>
> > > > > > > On Dec 10, 4:41 pm, Lance Dyas <lance...@inetnebr.com> wrote:
>
> > > > > > >> Note GMarker object has a getIcon method...
> > > > > > >> and that returns a a GIcon and that has quite a few properites...http://code.google.com/apis/maps/documentation/reference.html#GIcon
>
> > > > > > >> tanos_8888888888 wrote:
>
> > > > > > >>> Thanks guys. I cleaned up my code so that it will load up in IE6 now.
> > > > > > >>> I understand and can find what you are talking about, but cannot
> > > > > > >>> connect how to get the href, or the image path itself from the
> > > > > > >>> array markers[i] or any array that is there. My custom search goes
> > > > > > >>> through the overlayman.markers[i].titles array and just adds
> > > > > > >>> matches to the div.... would love to have the corresponding icon image
> > > > > > >>> added there as well...
>
> > > > > > >>> I can write code to load up all the 'titles' and img paths from an ext
> > > > > > >>> data source that I can write, but I think that will just
> > > > > > >>> slow down loading the page once I start to get a couple of hundred
> > > > > > >>> markers.
>
> > > > > > >>> You spoke of the marks href prop....
> > > > > > >>> and the KML object itself....
>
> > > > > > >>> Are there any examples out there that reference this from the GeoXml
> > > > > > >>> model?
>
> > > > > > >>> my site is here:
>
> > > > > > >>>http://www.myislamap.com/map.htm
>
> > > > > > >>> thanks so much for the help so far.
>
> > > > > > >>> On Dec 10, 3:44 am, Lance Dyas <lance...@inetnebr.com> wrote:
>
> > > > > > >>>> tanos_8888888888 wrote> Have tried myvar.overlayman.markers[i].graphic .... .image, many
>
> > > > > > >>>>> more... have no idea if this is even stored in the object array or
> > > > > > >>>>> generated from the style file that links the icon itself?
>
> > > > > > >>>> Randomly poking for properties?
>
> > > > > > >>>> The first item that is passed to the AddMarker function is
> > > > > > >>>> is a GMarker or GPolyline or GPolygon, they have been extended in various
> > > > > > >>>> ways (perhaps too many) see below for a few examples but they are
> > > > > > >>>> visible in the code
> > > > > > >>>> . This object is pushed in to the poorly named "markers" array
>
> > > > > > >>>> If the GeoXml parameters have domouseover set? it has a
> > > > > > >>>> mess property containing an html string used to display
> > > > > > >>>> that mouseover... otherwise no
>
> > > > > > >>>> If the kml/gml element associated with it has an id property
> > > > > > >>>> then so does it.... otherwise no.
>
> > > > > > >>>> It will have a sidebarid which could be used to find the html container
> > > > > > >>>> which its entry is drawn in to.
>
> > > > > > >>>> No virus found in this outgoing message.
> > > > > > >>>> Checked by AVG -www.avg.com
> > > > > > >>>> Version: 8.5.426 / Virus Database: 270.14.100/2554 - Release Date: 12/09/09 07:32:00
>
> > > > > > >>> --
>
> > > > > > >>> 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 athttp://groups.google.com/group/google-maps-api?hl=en.
>
> > > > > > >> No virus found in this outgoing message.
> > > > > > >> Checked by AVG -www.avg.com
> > > > > > >> Version: 8.5.426 / Virus Database: 270.14.102/2556 - Release Date: 12/10/09 07:36:00- 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 athttp://groups.google.com/group/google-maps-api?hl=en.
>
> > > > > > No virus found in this outgoing message.
> > > > > > Checked by AVG -www.avg.com
> > > > > > Version: 8.5.426 / Virus Database: 270.14.102/2556 - Release Date: 12/10/09 07:36:00- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- 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