On Jul 21, 11:38 am, Matas Kondratavičius <[email protected]> wrote:
> Hello everybody,
>
> i have encountered a problem: i have a kml file which i load onto map.
> It contains information for overlays which i select from mysql
> database. The overlays are categorized and each category has a
> specific icon. Now i would like to filter those overlays by category,
> using a check box, however i cannot seem to find a way to remove a
> single item from the map (only whole kml layer which removes all the
> overlays). Is there any way to remove single item from kml layer,

Not if you are using KmlLayer to display it, it is created as a single
overlay.

> somethign like
>
> if(item meets a requirement)
>   remove item from kml layer
>
> or should i just use some other method to achieve what i want?

You might try FusionTablesLayer.  You can import your kml, then
display categories by changing the query.

If your kml is not very complex, you could use geoxml3, which adds
each placemark as an individual object that can be controlled.

  -- Larry

>
> now i was thinking about removing whole kml layer and running a query
> agains the db to select things i need, but i discarded it as my
> website is mainly targeted to be used on mobile devices.
>
> Thanks for help.

-- 
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