<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Nope.&nbsp; I know about that.&nbsp; I'm using Firefox.&nbsp; I know IE7 can handle .png's.&nbsp; I hate IE6 - especially when I'm compensating for that crap browser when I'm using CSS.<br><br><blockquote><hr>From: williams@websawyer.com<br>Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My!  Now markers won't display tran<br>Date: Tue, 2 Oct 2007 08:52:12 -0600<br>To: docterrobert@MSN.COM<br><br>IE6 will not show a transparent png as transparent, only a transparent gif.&nbsp; Could be a browser problem!<div><br class="EC_khtml-block-placeholder"></div><div><br><div><div>On Oct 1, 2007, at 10:39 AM, Christopher Harris wrote:</div><br class="EC_Apple-interchange-newline"><blockquote><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">(Problem described on second parapraph.)</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">Alrighty...........it works!&nbsp; What's most exciting is that the problem that I eluded to in my last reply (the markers or points being off a few hundred yards in a circular pattern) has been fixed as a result of all your advice from earlier.&nbsp; I don't know if it was from me using a shapefile to describe the tile index or if it was from me adjusting lines 1 &amp; 4 in the world file to correctly define the x and y map unit/pixel ratio.&nbsp; I'll play around with it and figure it out.&nbsp; I got it working last Friday right before I left work.&nbsp; Thanks a million!</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">Now - one minor issue.&nbsp; The markers that I'm placing all display and show up at the right spots, but they aren't displaying there transparent backgrounds.&nbsp; I'm using .png's, and always there's a black background being displayed.&nbsp; I've double checked in The GIMP and there's definitely no background.&nbsp; I noticed on the Mapscript API in the "Layers" class that there's a member called transparency and that it takes an int value.&nbsp; I know that a lot of the members that say int actually take a constant as defined in the constants section, but none of them work (MS_ON, MS_TRUE, MS_YES, MS_GD_ALPHA) and actual integers like -10 through 10 don't work either.&nbsp; I know the layer's type shouldn't be set to Raster.&nbsp; </span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">Here's the code snippets and sections where I define my marker and the layer it is on:</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Location Marker Layer</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer = ms_newLayerObj($map);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer-&gt;set(name, "Marker");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer-&gt;set(type, MS_LAYER_POINT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer-&gt;set(status, MS_DEFAULT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Location Marker layer class</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerclass = ms_newClassObj($markerLayer);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Location Marker layer class style</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerstyle = ms_newStyleObj($markerclass);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Sets the size of the marker.&nbsp; The bigger, the badder.......</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerstyle-&gt;set(size, 15);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">and</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$layer=$map-&gt;getLayerByName("Marker");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$layer-&gt;status = MS_DEFAULT;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Loop creates marker points then populates them on the map</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">for($i=0; $i&lt;$markerCount; $i++){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Creates a point so the marker can be drawn</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $marker[$i] = ms_newPointObj();</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Sets that marker according to respective x,y's</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $marker[$i]-&gt;setXY($mx[$i], $my[$i]);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Gives the location of the symbol to place as a marker</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $markerstyle-&gt;set(symbolname, "data/statesp020/$mi[$i]");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Draws the point using the map, layer Marker, and the image generated, and the only class it has (Index 0)</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $marker[$i]-&gt;draw($map, $layer, $image, 0, "");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">}</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">Here's the rest of my php (with the code above in it):</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&lt;?php</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Takes the $_GET array's and keys and sets them to another array </span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$keys = array_keys($_GET);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//This loop will find all values that have a name lat, lon, and mi (marker icon) and set them to their own array</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">foreach($keys as $curvar){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; if((substr($curvar, 0, 3))=="lat"){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $my[] = $_GET[$curvar];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; if((substr($curvar, 0, 3))=="lon"){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $mx[] = $_GET[$curvar];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; if((substr($curvar, 0, 2))=="mi"){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $mi[] = $_GET[$curvar];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">}</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The count of how many points were entered in</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerCount = count($mx);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//echo "&lt;br&gt;The marker count is: $markerCount&lt;br&gt;";</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Map pic width, height parameters</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$mapwidth = $_GET['width'];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$mapheight = $_GET['height'];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//New point object for Zooming</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$centerpoint = ms_newPointObj();</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Taking the center points of the image</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$centerX = $mapwidth/2;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$centerY = $mapheight/2;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$centerpoint-&gt;setXY($centerX, $centerY);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The zoompoint and zoomscale parameters</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//$zoompoint = $_GET['zoompoint'];&nbsp;&nbsp;&nbsp; ZOOMPOINT ZOOMS IN ON A PIXEL</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$zoomscale = $_GET['zoomscale'];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Center Coordinates passed will be in decimal degrees</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$x = $_GET['lon1'];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$y = $_GET['lat1'];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Create a new recObj with dd extents</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$extent = ms_newRectObj();</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Set those extents</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$extent-&gt;setextent($x-.002, $y-.002, $x+.002, $y+.002);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Set the newly adjusted extent variables</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$x1 = $extent-&gt;minx;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$y1 = $extent-&gt;miny;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$x2 = $extent-&gt;maxx;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$y2 = $extent-&gt;maxy;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Upper left and lower right coordinates</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//$ULx = $x1;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//$ULy = $y2;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//$LRx = $x2;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//$LRy = $y1;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The Map Itself</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The mapfile path and map file itself</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map_path = "/var/www/mapserver/campuscomber/";</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map_file = "indexAlt.map";</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map = ms_newMapObj($map_path.$map_file);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The size of the window set by mapserver</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;setSize($mapwidth, $mapheight);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The name of the map</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;set(name, "US Universities");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$app = $_GET['app'];</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The type of image produced depending if request comes from Wap, Kiwi, or Webcomber</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">if($app=="app"){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;selectOutputFormat("GIF");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Sets the output format type</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(name, "gif");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(driver, "GD/GIF");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(mimetype, "image/gif");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(imagemode, MS_IMAGEMODE_RGB);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(extension, "gif");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">}</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">if($app=="kiwi" || $app=="web"){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;selectOutputFormat("PNG");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Sets the output format type</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(name, "png");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(driver, "GD/PNG");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(mimetype, "image/png");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(imagemode, MS_IMAGEMODE_PC256);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $map-&gt;outputformat-&gt;setOption(extension, "png");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">}</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//The color of the background</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;imagecolor-&gt;setRGB(140, 140, 140);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Tells where the US Shapefile info and images are located</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;set(shapepath, "/var/www/mapserver/campuscomber/data/statesp020/");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Sets the map projection lat/lon</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//sets the EXTENT</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;setExtent($x1, $y1, $x2, $y2);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;set(units, MS_DD);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;set(debug, MS_ON);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Web Object which specifies the image path and the image url for the image Maperver generates</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;web-&gt;set(imagepath, "/var/www/mapserver/campuscomber/images/");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;web-&gt;set(imageurl, "/mapserver/campuscomber/images/");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//United States layer</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$us = ms_newLayerObj($map);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$us-&gt;set(name, "US state polygons");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$us-&gt;set(type, MS_LAYER_POLYGON);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$us-&gt;set(status, MS_DEFAULT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$us-&gt;set(data, "statesp020");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//United States layer class</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usclass = ms_newClassObj($us);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//United States layer class style</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usstyle = ms_newStyleObj($usclass);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usstyle-&gt;color-&gt;setRGB(240, 230, 140);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usstyle-&gt;set(symbol, 0);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//US Boundaries Layer</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usbounds = ms_newLayerObj($map);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usbounds-&gt;set(name, "US state boundaries");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usbounds-&gt;set(type, MS_LAYER_LINE);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usbounds-&gt;set(status, MS_DEFAULT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usbounds-&gt;set(data, "statesp020");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//US Boundaries layer class</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usboundsclass = ms_newClassObj($usbounds);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//US Boundaries layer class style</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usboundsstyle = ms_newStyleObj($usboundsclass);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usboundsstyle-&gt;color-&gt;setRGB(50, 50, 50);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usboundsstyle-&gt;set(size, 3);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$usboundsstyle-&gt;set(symbol, 0);$usboundsstyle-&gt;set(symbol, 0);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//University Map Layer (Actually, I don't think we even need this layer - but ehhh, who knows?)</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$university = ms_newLayerObj($map);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$university-&gt;set(name, "University of Illinois");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$university-&gt;set(type, MS_LAYER_RASTER);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$university-&gt;set(status, MS_OFF);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$university-&gt;set(data, "UofICampusMapAlt.gif");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Tiled University Map Layer</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$universityTiles = ms_newLayerObj($map);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$universityTiles-&gt;set(name, "University of Illinois Tiles");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$universityTiles-&gt;set(type, MS_LAYER_RASTER);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$universityTiles-&gt;set(status, MS_DEFAULT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$universityTiles-&gt;set(tileindex, "u_of_ill.shp");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$universityTiles-&gt;set(tileitem, "Location");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Location Marker Layer</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer = ms_newLayerObj($map);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer-&gt;set(name, "Marker");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer-&gt;set(type, MS_LAYER_POINT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerLayer-&gt;set(status, MS_DEFAULT);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Location Marker layer class</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerclass = ms_newClassObj($markerLayer);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Location Marker layer class style</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerstyle = ms_newStyleObj($markerclass);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Sets the size of the marker.&nbsp; The bigger, the badder.......</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$markerstyle-&gt;set(size, 15);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//$map-&gt;zoompoint(1, $centerpoint, $mapwidth, $mapheight, $extent);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Sets the zoom scale for zooming in and out</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$map-&gt;zoomscale($zoomscale, $centerpoint, $mapwidth, $mapheight, $extent);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Draws the image</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$image=$map-&gt;draw();</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Gets the Marker Layer</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$layer=$map-&gt;getLayerByName("Marker");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$layer-&gt;status = MS_DEFAULT;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Loop creates marker points then populates them on the map</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">for($i=0; $i&lt;$markerCount; $i++){</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Creates a point so the marker can be drawn</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $marker[$i] = ms_newPointObj();</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Sets that marker according to respective x,y's</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $marker[$i]-&gt;setXY($mx[$i], $my[$i]);</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Gives the location of the symbol to place as a marker</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $markerstyle-&gt;set(symbolname, "data/statesp020/$mi[$i]");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; //Draws the point using the map, layer Marker, and the image generated, and the only class it has (Index 0)</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; $marker[$i]-&gt;draw($map, $layer, $image, 0, "");</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">}</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">//Produces a url to reference the image by</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">$image_url=$image-&gt;saveWebImage();</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">echo $image_url."&lt;br&gt;";</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">?&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&lt;html&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &lt;head&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;title&gt;Mapserver "University of Illinois"&lt;/title&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &lt;/head&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &lt;body&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;img src="&lt;?php echo $image_url?&gt;"&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&nbsp;&nbsp;&nbsp; &lt;/body&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">&lt;/html&gt;</span><br style="font-family: Tahoma; font-size: 13.3333px;"><br style="font-family: Tahoma; font-size: 13.3333px;"><hr style="font-family: Tahoma; font-size: 13.3333px;"><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;">Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! </span><a href="http://spaces.live.com/spacesapi.aspx?wx_action=create&amp;wx_url=/friends.aspx&amp;mkt=en-us" target="_blank"><span class="EC_Apple-style-span" style="color: rgb(0, 0, 238); font-family: Tahoma; font-size: 13.3333px;">Try it!</span></a><span class="EC_Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px;"></span></span></blockquote></div><br></div></blockquote><br /><hr />Peek-a-boo FREE Tricks & Treats for You! <a href='http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us' target='_new'>Get 'em!</a></body>
</html>