add poi state methods
fix bug with undefined leaflet id in template
use poi state in map js