HOME

<?php // Get the width of the map container $width = $GLOBALS[‘content_width’]; // Create the map $map = new Map($width); // Add the states to the map foreach (us_states() as $state) { $map->addState($state); } // Set the tooltip text and URL for each state foreach ($map->getStates() as $state) { $state->setTooltip( $state->getName() . ‘ (‘ . …

HOME Read More »