Open ChrisMwai opened 7 years ago
As you can see below, the map has ben rendered just after the
tag, messing up the entire layout.Has this been addressed? For Laravel 5.4, you can render a generic map (using render()) in a blade view but the actual map data is missing. If you echo() from controller, you don't appear to have control where the map is rendered.
Can you please refine your issue? AFAIK, the html generated is valid, what do you mean by not respecting the DOM?
For Laravel - need a div with id of map_canvas as the target. And then you need to pass in a couple of variables for map helper and api helper and the map variable itself. Then put them in your blade a couple of lines to get all the javascript in: {!! $mapHelper->render($map) !!} {!! $apiHelper->render([$map]) !!}
The map seems to place itself directly after the opening
tag. Is this behavior normal? You cant target any other div?