Howdy folks! Hopefully this won't be too tough. I have a polar
projection (using Mike William's "magic" fix for the polygon issues)
and am trying to get rid of one last bug. When the user clicks on the
map, I place a marker at the click location. It also gets added to a
list of coordinates. In this way, the user constructs a polygon, which
they can then use to search out database. Everything works dandy in
mercator. However, in the polar projection, when the user initially
clicks to place the point, it *appears* at a location 180 degrees from
where it should be. At the same time, the actual reported lat/lng of
the click location is precisely what you would expect. So, the user
clicks at -60 lat, 90 lng, and the point appears at -60 lat, -90 lng,
with the reported location at the expected coords of -60 lat, 90lng.
Additionally, when the user then drags the marker around, the reported
coordinates synch up with the actual location of the marker. If I try
to do anything to fix the click behavior, then the drag behavior
breaks by 180 degrees.
So, this polar search interface is still in development, but I
pleaded with our SA's to have them put the test system online so I
could try to get some help here. I've been struggling with it for a
while, to no avail. Anyhow, please please PLEASE take a look and see
what's what. It seems to me that in the case of click vs. drag, the
exact same function would be called, so why the different behavior?
Also, I apologize for the spaghetti code. It was somewhat committee,
and only the polar stuff near the end of the js file is what we're
worrying about here. ;)
https://asfnat.asf.alaska.edu/
Just click the big "Geographic Search" button, and you'll get the map
interface. You can then use the in-map controls to switch to north/
south polar. I recommend south polar, since we actually have
"interesting" tiles for that area. The north polar ones are just an
empty polar grid, and a sparse one at that. The South Polar tileset,
though, actually has a SAR mosaic of antarctica. Because of the way
the site works, it needs to establish a session before you can
actually navigate anywhere, which is why I'm not posting a direct
link. One click to get to the map interface should be close enough,
though. ;)
Thanks in advance!
-G
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---