Hi all, I am trying to embed static maps into a Windows Mobile Forms app. I get a byte array of the static map image from a web method, which I convert to an Image type and paint on a GUI element [all these in .NET CF... ignore these]
The problem is I want the map image on the Form element to have clickable Push pins..... I (of course,) have the latitude and longitude of the center of the map.... I also have the lat and long of other markers (push pins).....and also the zoom level.... how can i calculate the screen pixel coordinates of the pushpins and the center..... I found a formula on a page to get the absolute pixel coordinates of a given point.. i.e., the pixel coordinates w.r.t the top left corner of the top left tile of the entire Earth at a particular zoom level (let's say zoom level 17). But, given a 512x512 px image, I want the screen pixels.... i.e, w.r.t the top left corner..... all this extrapolated leads me to get to find the lat and long of the top left corner -> I have to find the lat and long bounds of the static image..... ex: I want the screen pixels of the center of a static map centered at (lat, long): 33.319503, -86.713899 zoomed at 17, 512x512 px...... and it's lat and lon bounds.... All these without using the javascript API's methods..... as i have to implement this on a device, not in a web page.... Or, if there is a better approach to all this, I would appreciate it. Any suggestions will be appreciated.... Thanks in advance, Renuka Prasad. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
