[mapserver-users] PHP MapScript dynamic tooltips with 6.0 - help pls

Mahalakshmi Narayanan mhln25 at gmail.com
Wed Jun 29 03:29:30 EDT 2011


Greetings from Chennai !

I represent the National Informatics Centre, Department of
Communications and Information Technology, Government of India.

We have been using MapServer since 3.5 version days.  We have
developed a few web based GIS applications using MapServer

and they are currently hosted in our servers.

The following two websites are hosted in the public domain and a few
as Intranet applications:

http://tnmaps.tn.nic.in
http://www.census2001.tn.nic.in

We appreciate the excellent software and kudos to the community.

Tooltip using imagemap had been a great feature since many of our
villages are very small and labelling is ruled out.  During

migration from 5.2 version to 6.0, we find that the Imagemap feature
is dropped.  Since we have been using PHP/MapScript to

provide dynamic tooltips, we are unable to achieve the same in 6.0.
HTML static .map gives the desired imagemap but through PHP

we are unable to generate it dynamically.  We tried a few lines like
below but without success..

        $map2->outputformat->setOption("MIME_TYPE", "text/html;
driver=imagemap");
       //$map2->outputformat->setOption("DRIVER", "imagemap");
        $map2->selectOutputFormat('text/html');
        $map2->outputformat->set("extension", "html");

Would be grateful if anyone in the community could help us resolve
this issue, pls.

-- 
With kind regards,
Mahalakshmi Narayanan


More information about the mapserver-users mailing list