I wanna made something like this: http://dev.hillsborough.wateratlas.usf.edu/datamapper/
there will be: a select for the "code"; a select menu for the nation, a select menu for the nation and a select menu for the app/subapp there will be also a check box for the status of the markers. I think that now i'm explained better. On 5 Ago, 15:23, Federico Ulfo <[email protected]> wrote: > Hi Ino, > I think you mean a filter that show only the markers of the selected color > > there's 2 way to solve it: > 1. php, load only the markers you need > 2. javascript, load all the marker into a specified bound and than show or > hide the group of markers > > I enter in detail with the javascript solution: > > for each voice in the legend you can call the event button ex. <a > onclick="filter('yellow')">yellow</a> > > than: > > function filter( type ){ > // map.markers should be the array of all attached markers, can somebody > confirm? > for( i=0;i<map.markers.length;i++) > // set visible only the selected color > map.markers[i].setVisible ( map.markers[i].myType == type ); > > } > > in your code, before the switch (or after), add > marker.myType = type > --- > switch (type) > { > c... > ---- > > byee > > 2010/8/5 [email protected] <[email protected]> > > > On Aug 5, 3:18 am, inotipiedideipitoni <[email protected]> > > wrote: > > > Hi to everyone: i'm gonna build a map for my graduation thesis. > > > > I have a lot of markers on the map, and i wanna build a menu (on the > > > left of the map), to skim the markers. > > > > now i take the data from an xml with this function: > > > <snip> > > > > is it possible to create a menu that takes the list of the "code" from > > > the xml? > > > You mean like this example I translated to v3 from Mike Williams' > > tutorial: > >http://www.geocodezip.com/v3_MW_example_map3.html > > > -- Larry > > > > thanks in advance. > > > -- > > 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.
