大佬教程收集整理的这篇文章主要介绍了Laravel 和谷歌地图,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在刀片中实现谷歌地图搜索,我可以让它在“内容”中工作,但不能在我的标题中工作!
@extends('land.layouts.app')
@section('content')
<div class="form-group">
<label for="address_address">Address</label>
<input type="text" ID="address-input" name="address_address" class="form-control map-input">
<input type="text" name="address_latitude" ID="address-latitude" value="0" />
<input type="text" name="address_longitude" ID="address-longitude" value="0" />
</div>
<div ID="address-map-container" style="wIDth:100%;height:400px; ">
<div style="wIDth: 100%; height: 100%" ID="address-map"></div>
</div>
@section('scripts')
@parent
<script src="https://maps.GoogleAPIs.com/maps/API/Js?key={{ env('Google_MAPS_API_KEY') }}&librarIEs=places&callBACk=initialize" async defer></script>
<script src="/Js/mapinput.Js"></script>
@stop
@endsection
我将@yIEld('scripts') 放在 app.blade.php 中,它完美地工作并加载字段经纬度......当我输入 domain.com/search 时
好的...我需要在所有页面的标题中应用此搜索框...
我尝试使用@yIEld('search') 和@section('search')...
我尝试使用@include('land.search')
都显示搜索框、地图...以及纬度和经度字段...但是当我搜索任何地址时...它没有在相应的框中添加纬度和经度...
有人可以帮我吗?
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的Laravel 和谷歌地图全部内容,希望文章能够帮你解决Laravel 和谷歌地图所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。