anchor.diff:      } else {
           p.marker.setIcon('http://maps.google.com/mapfiles/ms/icons/red-dot.png');
       }
  +    updateSelectionInForm();
  +}
  +
  +function updateSelectionInForm(){
  +    var values = [];
  +    printers.forEach(function(printer){
  +        if(printer.selected){
  +            values.push(printer.id);
  +        }
  +    });
  +    $('#job_printer').val(JSON.stringify(values));
   }
   
   function initialize() {
  
positive.code: <script>
  var mapOptions, map, GeoMarker, printers, circle;
  
  function createPrinter(d, p){
      var image = 'http://maps.google.com/mapfiles/ms/icons/red-dot.png';
      return {marker: new google.maps.Marker({
                          position: p,
                          map: map,
                          icon: image}),
          data:d,
          selected:false};
  }
  
  
negative.code:     center: new google.maps.LatLng(57.70567520430679, 11.963586330413818)
    }
    map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
    printers = [];
    $.getJSON('/printers.json', function(data){
      data.forEach(function(printer){
          var latLng = $.parseJSON(printer.location);
          printers.push(createPrinter(printer.id, new google.maps.LatLng(latLng.lat, latLng.lng)));
      });
        printers.forEach(function(printer){
          google.maps.event.addListener(printer.marker, 'click', function() {
  