On Mar 22, 8:39 am, "[email protected]" <[email protected]> wrote: > On Mar 22, 8:20 am, individual85 <[email protected]> wrote: > > > Here is my new > > link:http://thomas.joomladev.de/__beispiele/gbeispiel8/phpsqlajax_map.html > > loadPointsFromXml(); keeps the sidebar up to date. If the marker is > > out of view from the map, they are not shown in the sidebar. > > That is still not a true statement. The loadPointsFromXML function > contains the following code: > if (bounds.contains(point) == true) { > var marker = createMarker(point, name, address, type); > map.addOverlay(marker); > document.getElementById("sidebar").innerHTML = sidebar_html; > > } > > Which still adds the marker back when it is moved back into view. > > > My problem is the checkbox. I want, if the checkbox is uncecked, the > > marker to be not in the sidebar. > > My second problem is, if the checkbox is uncecked, the marker of this > > uncheckd box appears again, if the map is moved. > > How can I solve this? > > You need to make adding the marker back conditional on the state of > the check box.
Something like this: http://www.geocodezip.com/thomas_joomladev_de_gbeispiel_phpsqlajax_mapE.html -- Larry > > > > I'am happy about any help. > > I hope my english is understandable. > > > On 18 Mrz., 14:59, "[email protected]" <[email protected]> > > wrote: > > > > On Mar 18, 6:25 am, Thomas Hennig <[email protected]> wrote: > > > > > loadPointsFromXml(); updates the sidebar, which is not in my example. It > > > > show's marker in the sidebar, which are visible on the map and hide > > > > marker, > > > > which are unvisible on the map. > > > > Maybe you are looking at a different map than I am then. > > > > -- Larry- 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 [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-api?hl=en.
