On Jan 19, 9:54 pm, bnw <[email protected]> wrote:
> Hi -  I have been using the tutorials on creating a store locator and
> have gotten it working with my data.  I was even able to add driving
> direction links in the markers from another tutorial.  (Obligatory
> warning:  I have minimal experience with php, javascript, anything
> helpful, etc. )
>
> My question is: is it possible to set the map to initially show all
> the markers before any user input is sent.  If you look at the map
> shown 
> here:http://code.google.com/apis/maps/articles/phpsqlsearch.html#createmap
> it shows the map with the sidebar filled in relation to the input.
> However initially the sidebar is completely blank and the map only
> centers and zooms on the coordinates given to it.  No markers are
> shown.  I would like it to either show all the markers or if its
> easier to code, just default to one marker in particular.
>
> I can post a link if needed but right now mine is just hosted locally.

The easiest way to do that is to send a query to the database (just
like the form post does) during the initialization of your map.  If
the query returns all the result in your database, they will all show,
if it returns one, only that one will be shown.

  -- Larry

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


Reply via email to