On 17 December 2011 18:18, Johnny <[email protected]> wrote:
> In my previous implementation, I created the markers, add to array and
> add listeners, one at a time.  By the time all markers are placed on
> the map, my arrays are all setup.  All is good until I uncheck a
> checkbox, click on a marker to go to another page, then return to the
> map by click 'Back' on the browser.  In that situation, the checkbox I
> unchecked remain unchecked which means some markers should not be
> shown, but all markers are created together with map initilization.
> Link is as followed.
>
> http://www.strathcona-health.ca/vsb/maps/ourschoolsmap0.7.1.html
>
> Then I changed the scripts so that it checks the checkbox's checked
> status before creating the markers.  In the same scenario, the markers
> will not be shown.  But then they cannot be shown again because the
> array for these markers is not filled.
>
> http://www.strathcona-health.ca/vsb/maps/ourschoolsmap0.7.2.html

So: create all the markers and *then* use the checkboxes to display them.

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