Forum Moderators: open

Message Too Old, No Replies

How to Zoom

Need way to zoom into map image

         

socrtwo

3:35 pm on May 17, 2010 (gmt 0)

10+ Year Member



Thanks for the previous help. I now have my map working and rewrote the PHP to fit into one big file which is accessed via GET calls.

The countries can be selected by checkboxes or clicking on part of the imagemap drawn around the respective country area. The map does show small countries such as Monaco, San Marino and Vatican City, as one pixel large. I'm now displaying my map at full size of 1425 X 600 pixels however even at this size the one pixel size countries are too small to see.

I would like to add zoom or magnifying glass functionality to my application. I looked at the GD documentation and sourceforge but it is not immediately apparent how to make a zoom function so user can see one pixel size countries and even click on them. I don't want to use the free flash zoomify application because I think that would interfere with my simple image map and coding, although I suppose I could be wrong about that

Any suggestions? Thanks in advance.

socrtwo

1:01 pm on May 18, 2010 (gmt 0)

10+ Year Member



I see this can be done with Javascript but none I tried seem to preserve the use of my image map underneath the magnified portion of the screen. Any suggestions?

whoisgregg

9:36 pm on May 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using a tiled image system? Or a single giant image?

socrtwo

2:47 pm on May 21, 2010 (gmt 0)

10+ Year Member



It's a single giant image at the moment. I have now have a Javascript magnifier that works great but the underlying imagemap doesn't work when the magnifier is on. The magnifier uses mouse X and Y coordinates, so I can easily reuse them to make a server side image map call.

So I actually created that server side map along with 275 tiny php files that the server map calls. My problem is where to store this map and what is the structure of the server map and do I have to get my ISP to set up something for instance in the CGI bin? Does the server side map have to be a formally structured Perl file? I did install the two CGI modules which came up when I searched for "image" and "map" in my website console.

Thanks in advance.

socrtwo

4:10 am on May 26, 2010 (gmt 0)

10+ Year Member



I've given up on the zoom. Users can select the one pixel countries and territories with checkboxes or CTL-Mouse Wheel.

My issue now is I want users to be able to make poster size images with a regular printer. I've searched for poster printing, banner printing, oversize printing, and tiled printing with no javascript, php or cgi results. Do you have any suggestions? Posterazor is awesome. It would be cool to find something like it. Rastebator's Javascript is free to use, but I don't think the results are dark enough.

whoisgregg

8:44 pm on Jun 1, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Programatticaly making PDF's would probably be the best way to go. Printing straight from a browser is a total pain, and printing from Flash is only marginally better.

There are libraries for PHP to handle PDF production.