2amigos / yii2-google-maps-library

Google Maps API library for Yii2
https://2amigos.us
BSD 3-Clause "New" or "Revised" License
106 stars 79 forks source link

width=100% throws non well formed numeric value when calling getMarkersFittingZoom of Map in PHP 7.2 #114

Closed Infoto closed 6 years ago

Infoto commented 6 years ago

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.

tonydspaniard commented 6 years ago

The fix was merged.. Closing this issue... I'll tag new revision version.