fix bug localhost
fixed bug cancel
add rules to the google maps example
add rules to the google maps example