gordonbanderson / Mappable

Mappable module for SilverStripe CMS
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Applying width and height to getRenderableMap() results in invisible map #24

Open wernerkrauss opened 9 years ago

wernerkrauss commented 9 years ago

Hi,

just struggled debugging my shortcode that displays a map with a lot of pins based on categories

Didn't work (invisible, but rendered map):

    $map = $items->getRenderableMap($width,$height);

Worked:

    $map = $items->getRenderableMap();
gordonbanderson commented 9 years ago

Can you explain a bit more about the scenario, not a lot of info to go on with. $width and $height both 0 or not?