When setting width attribute of Map to be '100%', the PHP responds with PHP Notice: A non well formed numeric value encountered in php as of version 7.2 when I use getMarkersFittingZoom function. I have casted both width and height to integers explicitly in the return statement, but I think this is not the best solution to the problem.
Such problem may also occur when using getBoundsFromCenterAndZoom function.
When setting
width
attribute ofMap
to be '100%', the PHP responds withPHP Notice: A non well formed numeric value encountered in php
as of version 7.2 when I usegetMarkersFittingZoom
function. I have casted bothwidth
andheight
to integers explicitly in the return statement, but I think this is not the best solution to the problem.Such problem may also occur when using
getBoundsFromCenterAndZoom
function.