MapTools.org

[maplab-users] Rosa vs HTML mode

Paul Spencer pgs@magma.ca
Tue, 16 Jul 2002 11:08:05 -0400
Steve,

GMapFactory will provide an option for switching shortly, we couldn't 
squeeze it in for the last release.  It will also have an option for 
adding a 'Map Size' box to the generated application.

With regards to the php/phtml thing, the convention we use is that .php 
files normally contain only PHP code (but the code can create HTML) and 
are not referenced directly by a user in the address bar, .phtml files 
are loaded directly by a browser.  We 'try' to stick to this but some 
cases, it's a difficult call.  For drawmap.php, it isn't referenced 
directly and doesn't generate any HTML output, just an image, hence the 
.php name.

Hope that helps you make sense of our code,

Cheers,

Paul
--
Paul Spencer
Applications and Software Development
DM Solutions Group

woodbri@swoodbridge.com wrote:

>Hi all,
>
>Question on Rosa vs HTML mode maps.
>
>1) will GmapFactory support generating apps the can be switched 
>between Rosa and HTML by the web user?
>
>2) looking at the code for <application name>.php in function 
>drawMainMap() there is an if ( $nRosa ... block and in the else 
>section you have:
>
>        // otherwise draw a regular map
>        printf ( "<td bgcolor=\"#ffffff\" width=\"%d\" 
>height=\"%d\">", $oMap->width, $oMap->height );
>        printf ( "<input type=image 
>src=\"drawmap.php?PrevStateKey=%s\" border=0 width=\"%d\" 
>height=\"%d\" name=\"mainmap\"></td>", $PrevStateKey, $oMap->width, 
>$oMap->height );
>
>It seems strange that you call drawmap.php here instead of say 
>drawmap.phtml as your convention seems to be that *.php files are 
>includes and *.phtml files are files that get executed directly.
>
>-Steve
>_______________________________________________
>Maplab-users mailing list
>Maplab-users@dmsolutions.ca
>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
>
>  
>





This archive was generated by Pipermail.