On Nov 8, 10:05 am, Martin <[EMAIL PROTECTED]> wrote:
> No you don't have to bother with anything as involved as creating a
> tileserver or using a database.
>
> http://martinpearman.co.uk/bin/capture_image.txt
>
> Try the link again - i've made some changes which should simplify the
> process for you.
> I would comment the code a bit more but it's been that long since i
> originally wrote it that the logic behind it is lost!!
>
> Anyway the new script wants to be called with these queries present in
> the url:
>
> width - the width of the desired image in pixels
> height - the height of the desired image in pixels
> swx - the x pixel point of the south west corner of the map
> ney - the y pixel point of the north east corner of the map
> zoom - the zoom level at which to create the image
>
> So you might call:
>
> http://mydomain.com/capture_image.php?width=640&height=480&swx=6459&n...
>
> If you look at:http://martinpearman.co.uk/bin/panorama_camera.txt
>
> You'll see a javascript function i used to get the various parameters
> needed to call capture_image.php and how i set the src of an image
> element to display the requested image.
>
> Hopefully that's enough info to get it working for you.
> If not keep this thread updated and i'll help again if required.
>
> Martin.

I believe he will have to deal with Mercator projection conversions
from Lat/Lon coordinates to pixel coordinates.  It is unlikely his
composit map will align directly on tile boundaries.  He will have to
clip it to fit his map rectangle.

If the browser supports JavaScript, DHTML & the DOM, the file:

    www.polyarc.us/poly

does the alignment & clipping without server support.  Click the map
to recenter it.  Click the sidebar to activate / deactivate the sparse
tile layer overlay.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to