Hello Group, This is my first posting to Google Groups. I posted this discussion to the Google Maps Help Group earlier today. Since that time, I've realized that it is not appropriate for the Google Maps Help Group and is appropriate for this group, Google Maps API. Please excuse the cross-posting. I appreciate you help with this. Thanks, Wendy ---------------------------------
Subject: I can’t overlay GMarker, GPolyline or GPolygon on Geographic Projection Map Type My two unsuccessful attempts are linked here, and a detailed explanation of each follows: http://wendygross.net/psu_webpage/googlemaps/test-geographic-projection-v1.html http://wendygross.net/psu_webpage/googlemaps/test-geographic-projection-v2.html ************************************************************* I. Background Information: ************************************************************* I procured the basis of my Geographic Projection code from this site: http://facstaff.unca.edu/mcmcclur/GoogleMaps/Projections/Geographic.html http://facstaff.unca.edu/mcmcclur/GoogleMaps/Projections/Geographic.js (Note: the above code/example does not overlay GMarkers, GPolylines, or GPolylines) In my both implementations of my code I have: (1) Used exactly one tile (named mytile.jpeg) for every tile drawn I did this to simplify the processfor testing and to make my problem easy to replicate. (mytile.jpg is lavender filled rectangle with a thick purple, then thin cyan border). (2) Code listens for mousemove events on the map, and tracks the mouse location in the div latlonloc. This tracking helps by visually showing that the projection transformations are happening correctly. ************************************************************* II. My FIRST implementation tries but is unsuccessful at overlaying GPolyline, GPolygon and GMarker is here. It follows the http://facstaff.unca.edu as closely as possible, and adds in the creation and overlay of GMarker, GPolyline, GPolygon. ************************************************************* My first implementation is located here: http://wendygross.net/psu_webpage/googlemaps/test-geographic-projection-v1.html (This link is also listed above at top of message) ************************************************************* III. In my SECOND implementation (using my first implementation as a basis) I tried unsuccessfully to leverage a “Nasty Hack” that has successfully enabled a map of the STEREOGRAPHIC projection to have GPolylines overlayed on it. ************************************************************* By Googling the web, I found that the GPolyline problem had already been solved for Stereographic projections… From: www.econym.org.uk/gmap/extensions.htm If you want to draw polylines (to a map with a stereographic projection), then you can use this version of the code: nasamaps2.js which uses a nasty hack to work round the bug in the API. ... (nasamaps2.js is located at: http://www.econym.org.uk/gmap/nasamaps2.js) First I made sure that I could implement stereographic projection maps for North and South Poles; and draw GMarkers, GPolylines and try overlaying GPolygons. I was successful overlaying GPolylines and GMarkers, but unsuccessful at overlaying GPolygons. My stereographic projection tests are here: http://wendygross.net/psu_webpage/googlemaps/test-north-stereographic-projection.html http://wendygross.net/psu_webpage/googlemaps/test-south-stereographic-projection.html Finally, I unsuccessfully leveraged the MAGIC code for the stereographic projection in nasamaps2.js to try getting my geographic projection code to at least drawt GPolylines and GMarkers, the results of which are here: http://wendygross.net/psu_webpage/googlemaps/test-geographic-projection-v2.html ************************************************************* In Conclusion: ************************************************************* It is critical for me to be able to overlay at least GPolylines and GMarkers to a map that uses at its spatial reference the Geographic Projection. Overlaying of GPolygons would be nice too (although I could work around this with tiles). I have no such workaround for GPolylines, as I need end-user to be able to create them on the fly to select regions. Thank you in advance for help. - Wendy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
