adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
733 stars 741 forks source link

[Bug] Image Mapping Not Working on Proxy Component #259

Closed brandonmaynard closed 6 years ago

brandonmaynard commented 6 years ago

Bug Report

Current Behavior When using my proxy image component, the HTML does not render the mapping functionality. We are including core.wcm.components.image.v2 in our clienlib-site via embed. The only overlay we have is the _cq_editConfig.xml where we have placed our resourceType rather than the v2's resourceType in the cq:dropTargets's paramter node. Everything else in that file matches the latest v2.1.0's.

Expected behavior/code My image component should render the <map> element and allow the image to have clickable spots.

Environment

Possible Solution N/A

Additional context / Screenshots Here is a screenshot showing the 2 components. Each one with a different resource type. Our proxy does not work. The v2 does work. Proxy: image

WCM Core v2: image

brandonmaynard commented 6 years ago

I didn't account for the new getAreas() in my proxy Model's impl.