Googlmapper: Cornford\Googlmapper\Mapper::map() should not be called statically

I use laravel 5.1 and when need to use Googlmapper i see this an error
Non-static method Cornford\Googlmapper\Mapper::map() should not be called statically, assuming $this from incompatible context

Note:i did some of changes in my app.php file to be comptable with laravel 5.1 Instead of 'Cornford\Googlmapper\MapperServiceProvider' Cornford\Googlmapper\MapperServiceProvider::class

And the Same thing in Facade aliases Any Suggestions

Thanks for your time and thanks for this awesome API

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 50 (18 by maintainers)

Most upvoted comments

Hi there, have you tried adding a css style for height in your containing div, for example:

<div style="height: 200px">{!! Mapper:render () !!}</div>

Can you send me the html output from your browser.