ivory-google-map icon indicating copy to clipboard operation
ivory-google-map copied to clipboard

Map not respecting DOM structure

Open ChrisMwai opened this issue 7 years ago • 5 comments

The map seems to place itself directly after the opening

tag. Is this behavior normal? You cant target any other div?

ChrisMwai avatar Jul 05 '17 15:07 ChrisMwai

screenshot from 2017-07-05 19-00-18 screenshot from 2017-07-05 19-00-40

ChrisMwai avatar Jul 05 '17 16:07 ChrisMwai

As you can see below, the map has ben rendered just after the

tag, messing up the entire layout.

screenshot from 2017-07-05 19-05-46

ChrisMwai avatar Jul 05 '17 16:07 ChrisMwai

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.

RadBoris avatar Jul 10 '17 19:07 RadBoris

Can you please refine your issue? AFAIK, the html generated is valid, what do you mean by not respecting the DOM?

egeloen avatar Jul 13 '17 12:07 egeloen

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]) !!}

jhoskins98 avatar Oct 18 '17 18:10 jhoskins98