我正在尝试设置地图样式,该地图显示所有道路的方向,但没有道路编号。
{
featureType: "road.highway",
elementType: "labels.icon",
stylers: [
{color:"#979897"},
{ lightness: 50 },
{ visibility: "off" }
]
},
Run Code Online (Sandbox Code Playgroud)
但这会删除道路上的方向以及数字。我只想显示没有高速公路编号的方向。
我正在尝试使用laravel-eloquent来获取特定日期之后的房间和预订.
$fdate='2015-01-05';
$roomdata=Rooms::where('city_id','=',$citydata['id'])
->with('types')
->with('localities')
->with('slideshow')
->with(array('booking' => function($query){
$query->where('bookstart','>',$fdate);
}))
->get();
Run Code Online (Sandbox Code Playgroud)
这给了我一个错误说$fdate未定义.但是,当我这样做
$query->where('bookstart','>','2015-01-05');
Run Code Online (Sandbox Code Playgroud)
这非常有效.这有什么原因吗?有人能为这个问题提供一个好的解决方案吗?