Yii 1.1: br-map

Map of Brazil interactive
3 followers

Requirements

Tested 1.1.8x

Usage

<?php
  $states = array('SC','RS');
  $brMap = Yii::createComponent(array(
  'class'=>'application.extensions.brmap.BrMap',
  'width'=>580,
  'height'=>600,
  'callbackFunctionName' => 'renderTest',
  'borderColor' => '0x888888',
  'background' => '0xDDDDDD'
  ));
  $brMap->changeColorStates('0x777777',  array_values($states));
  $brMap->build();        
?>
 
[javascript]
 
<script type="text/javascript">
   function renderTest(uf){
       alert(uf);     
   }
</script>

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads