On Dec 8, 6:19 pm, "kaushtuv de" <[EMAIL PROTECTED]> wrote: > Yeah thats right. I too get that javascript error , but not always. > I can't figure out why the error errupts when I am accessing the xml > file(indexmarkers.xml) on the same domain !
It's called the "cross domain restriction" and is by design. > Also, you are very correct in detecting the map mechanism.I am assigning the > first 8 markers to appear at zoom level 1 and above, the first 15 markers to > appear at zoom level 2 and above, the first 20 markers to appear at zoom > level 3 and above, and so on. However, since you had marked it as > inefficient(which I too agree), can you provide me with a better alternative > ? also, what do you mean by "viewport." ? The viewport is the area of the map currently in view. I would suggest adding an attribute to your data specifying a minimum zoom level (and maybe another for the maximum zoom), which would enable to you parse the file only once, adding each marker with its minimum zoom level as you go through the file. > As of now, the zoomin-zoomout effect works perfect, but there is another > issue which I want to implement. When I drag > across the map, the markers should get plotted accordingly on the visible > screen only. THIS IS WHAT HAPPENS. When you drag the map, there is a noticeable delay when markers are added as they appear in the viewport. If you don't believe it is what is happening, please tell us why you think that, and how we can verify it. > I know, there are a lot of questions for u, but u r the best person in this > regard. Flattery is not necessary, but thank you anyway. Unfortunately your statement is not necessarily accurate. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
