   shadowSize: new L.Point(15, 16)
   iconAnchor: new L.Point(8,8)
 
+SM.PopupContent = Handlebars.compile """
+  <h2>{{registration}}<h2>
+  <p>Speed: {{speed}}mph</p>
+"""
+
 # Initialise this type of marker with a sensor vehicle
 # and the current lat and lon, e.g.
 #   marker = SM.VehicleMarker.create

    @set('stoppedIcon', new SM.VehicleStoppedIcon())
    state = @getPath('vehicle.state')
    @mapObject = new L.Marker(new L.LatLng(@get('lat'),@get('lon')), icon: @get("#{state}Icon"))
  bounds: ->
    latlng = @get('mapObject')._latlng
    new L.LatLngBounds(latlng,latlng)

    console.log "Marker latitude did change"
    mapObject = @get('mapObject')
    mapObject.setLatLng(new L.LatLng(@getPath('vehicle.lat'),@getPath('vehicle.lon')))
    @_setPopupContent()
  ).observes('vehicle.lat')
  _iconDidChange: ( ->
    mapObject = @get('mapObject')
