Hello Terry, first of all, thanks for your quick reply! I already corrected map.disableDoubleClickZoom() :-) --> Thank you! Maybe you already saw, that i'm not a really expert in javascript, so i am very thankful about any tipps.
But now to my main topic: - the really goal of this included map on my site is to display the next opponent team of our soccer club. - The map shows at the moment 12 locations, one stands for our team (Dorfmerkingen), the other ones are standing for the opponent teams. - each week our team plays against another team (we have a schedule) - So my idea was to display the next opponent team with a different marker (for example a orange one), all the other teams should be displayed in blue, the Dorfmerkingen ones should be displayed with the existing sign. - At the moment i didn't really began with programming, because i don't really have a clue about how to start it in JAVA. - So i think it's the easiest way to check determine the present date/ time and compare it with the schedule - (in a first step the schedule could be very easy, like that: 2009-07-19 location1 is orange, 2009-07-20 location2 is orange, 2009-07-21 location3 is orange. - means, i don't need a XML-File for the dates, it could be set directly in the code (because the schedule is a very static one (one time a year)). - I seems, that you are a really expert in that, maybe you could send me the needed coding, i would be very happy about your answer. I think the detailled schedule for our soccer team i afterwards am able to adjust manually in the coding. Hopefully, my descriptions now become more clear. best regards, Pietschey!!! On 19 Jul., 15:43, nolybab <[email protected]> wrote: > Pietschey, > > First, you may want to check your initialize() function, as the > map.disableDoubleClickZoom is missing the parenthesis, which means > double-click-zooming is still enabled... > > instead of: map.disableDoubleClickZoom; > try map.disableDoubleClickZoom(); > > Now, about your question. I'm not sure I understand the precise logic > behind what you are trying to accomplish. Your example is not clear. I > am confident that I could help you if I could understand the logic > needed. Please try to be a bit more precise in your example. > > Specifically, what is confusing is it almost seems like you want to > turn Marker 1 red for the first time-frame, then marker 2 red for the > second time-frame, but then for the third time-frame it gets confusing > with the so..on, because I still don't see the exact pattern for sure. > try being very specific and expanding the pattern out for a couple > more iterations. > > Also, I checked your code very carefully, but I don't see a date > anywhere in the data. Are you going to be loading a JSON or XML > dataset and looping through adding these markers? If not, then just > set the colors in your code directly. However, if looping then perhaps > providing an example of your data might also help. > > Thanks, > Terry > > On Jul 19, 7:27 am, Pietschey <[email protected]> wrote: > > > > > Hello, > > > i try to find a possibility to change the marker depending on the time/ > > date. I have several fixed markers in my map. Depending on the date a > > marker should have a special color/markertype. > > > Example: > > - from 2009-07-19 to 2009-07-20 marker1 should have markeroptions_red > > - in this time frame all the other existing markers (marker2-marker7) > > should have markeroptions_blue > > - from 2009-07-21 to 2009-07-22 marker 2 should have > > markeroptions_red > > - then, marker1 and marker3-marker7 should have markeroptions_blue > > - and so on... > > > url:www.starzonek.info/7.html > > > Can anybody help me to implement this functionality??? > > > Thanks in advance, Peter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
