br-map Map of Brazil interactive

  1. Requirements
  2. Usage

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>
4 0
2 followers
287 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: nandomegaman
Created on: Dec 5, 2011
Last updated: 4 years ago

Downloads

show all

Related Extensions