+/**
+ * Get an icon for the given object with its full URL.
+ */
+function getIconFile($aPlace)
+{
+ if (CONST_MapIcon_URL === false) {
+ return null;
+ }
+
+ $sIcon = getIcon($aPlace);
+
+ if (!isset($sIcon)) {
+ return null;
+ }
+
+ return CONST_MapIcon_URL.'/'.$sIcon.'.p.20.png';
+}
+