unclecheese / Mappable

Mappable module for SilverStripe CMS
10 stars 17 forks source link

Why isn't function getMapCategory() part of Mappable interface? #7

Open wernerkrauss opened 13 years ago

wernerkrauss commented 13 years ago

Hi Uncle Cheese,

i noticed that markers can be set with a custom category and you also write about the function getMapCategory() in your blog post - but it's not part of the Mappable interface.

Bug or feature?

cheers,

wmk

unclecheese commented 13 years ago

Hi, wmk,

A marker is not required to have a category, so therefore that function should not be part of the interface. Technically all markers need a category, but the way the PHP wrapper is designed, if there is no category specified, it just gives the marker some generic category name, so effectively it's not required.


SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Le Wednesday, September 14, 2011 à 8:29 AM, wernerkrauss a écrit :

Hi Uncle Cheese,

i noticed that markers can be set with a custom category and you also write about the function getMapCategory() in your blog post - but it's not part of the Mappable interface.

Bug or feature?

cheers,

wmk

Reply to this email directly or view it on GitHub: https://github.com/unclecheese/Mappable/issues/7