[Chameleon] Hide/show MapDHTML
Julien-Samuel Lacroix
jlacroix at mapgears.com
Fri Mar 12 09:59:33 EST 2010
Hi,
It would probably be easier and more practical to put your MapDHTML div
inside another div of which you would control the visibility.
Best regards,
Julien
Andreas Douvalis wrote:
>
> Hi !
>
> Is it possible to change Mapdhtml visible attribute ( from false to true
> for example)??
>
>
>
> I tried the above functions but I still have the map in my page.
>
>
>
> <div id="MainMapLayer" name="MainMapLayer">
>
>
>
> <!-- MapDHTML -->
>
> <cwc2 type="MapDHTML" visible="true" width="1000" height="600"
> allowresize="true" marqueecolor="FF3333" marqueewidth="2" minscale="1"
> bordercolor="#0000ff" borderwidth="0"/>
>
> <script language=javascript type='text/javascript'>
>
>
>
> function hidemapDHTML()
>
> {
>
> CWCDHTML_HideLayer("MainMapLayer");
>
>
>
> }
>
>
>
>
>
> function showmapDHTML()
>
> {
>
> CWCDHTML_ShowLayer("MainMapLayer");
>
>
>
> }
>
> </script>
>
> </div>
>
> <a href="javascript: hidemapDHTML();">hide div</a>
>
> <a href="javascript:showmapDHTML();">show div</a>
>
>
>
>
> __________________________________________________
> Χρησιμοποιείτε Yahoo!;
> Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail διαθέτει την
> καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
> http://mail.yahoo.gr
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Chameleon
mailing list