mardi 29 novembre 2016

Laravel google maps hiding circle on checkbox

i'm trying to hide and show circle depends on color/index by pressing checkbox. I did form but i dont know what next. Any suggestions ?

Circle configuration :

var mark = new google.maps.Circle({
  map: map,
  center : markerLatlng,
  radius : radius,
  strokeColor:  color,
  strokeWeight: 1,
  strokeOpacity:  1,
  fillColor:    color,
  fillOpacity:  1,
  zIndex: index,
  clickable:true,
});

Form:

  {!! Form::open(['route' => 'map.index' , 'method' =>'GET' ])!!}
    <div class="form-inline">
      {!!Form::label('Very good: ','', ['class' => 'navbar-form'])!!}
      {!!Form::checkbox('very_good','value',false,['class' => 'form-control'])!!}
      {!!Form::label('Good: ','', ['class' => 'navbar-form'])!!}
      {!!Form::checkbox('good', 'value',false,['class' => 'form-control'])!!}
      {!!Form::label('Moderate: ','', ['class' => 'navbar-form'])!!}
      {!!Form::checkbox('moderate', 'value',false,['class' => 'form-control'])!!}
      {!!Form::label('Sufficient: ','', ['class' => 'navbar-form'])!!}
      {!!Form::checkbox('sufficient', 'value',false,['class' => 'form-control'])!!}
      {!!Form::label('Bad: ','', ['class' => 'navbar-form'])!!}
      {!!Form::checkbox('bad', 'value',false,['class' => 'form-control'])!!}
      {!!Form::label('Very bad: ','', ['class' => 'navbar-form'])!!}
      {!!Form::checkbox('very_bad', 'value',false,['class' => 'form-control'])!!}
    </div>
  </div>
  {!!Form::close()!!}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2gDC4CO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire