On Oct 28, 3:50 am, Arin <[EMAIL PROTECTED]> wrote:
> Hi Larry,
>
> You are right...my code is falling into Pitfall#3... but is there any
> other way to implement.. I have to create the marker dynamically as I
> can't decide how many markers are required... It will depend on the
> user inputs and hence need dynamic approach, rather creating one by
> one... So, can you or anyone help me out as how I should approach to
> resolve the issue...

How about using a createMarker function?
from the page I provided a link to:
> The createMarker() function not only sets up the marker and its event 
> handler, but > it also causes local copies of the "marker" and "html" 
> variables to be preserved for > later use when the event gets triggered. This 
> is a special feature of the Javascript
> language called "function closure".

There are other ways as well, but it seems like you didn't try to use
the example provided already.

  -- Larry


>
> On Oct 24, 5:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > On Oct 24, 4:19 am, Arin <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I am implementing google map where I am picking up the latitude and
> > > longitude from the database and dynamically creating the marker. Now I
> > > need to create pop-up messages for each of the marker containing some
> > > database driven data particular to that marker...But I am not able to
> > > do the same. The example I have follwed only helped me to create the
> > > pop-up message only for the last marker location. As I am into the
> > > official network, hence not able to share my application... Though I
> > > will provide the source code for the same. Kindly help me..plz plz plz
>
> > > Also please let me know if you need anymore input from my side...
>
> > A link to your map would be more useful than code (I'm not going to
> > read code posted to the group...).
>
> > From your symptoms, it sounds like you are running into Pitfall 
> > #3http://econym.org.uk/gmap/
> > Part 1 Markers with info windowshttp://econym.org.uk/gmap/basic1.htm
>
> > he also discusses function closure under "Javascript Topics"...
>
> >  -- 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