<GuiXml>
    <Controls>
        <!-- Higher tier than ZO_PinBlob from WorlMap.xml since the pin icon should always draw above the area circle -->
        <Control name="ZO_MapPin" mouseEnabled="true" tier="HIGH" level="10" hidden="true" virtual="true">
            <Dimensions x="22" y="22"/>
            <OnMouseDown>
                if not ZO_WorldMap_GetPinManager():WouldPinHandleClick(self, button, ctrl, alt, shift) then
                    ZO_WorldMap_MouseDown(button, ctrl, alt, shift)
                end
            </OnMouseDown>
            <OnMouseUp>
                local pinManager = ZO_WorldMap_GetPinManager()
                if pinManager:WouldPinHandleClick(self, button, ctrl, alt, shift) then
                    if upInside then
                        pinManager:HandlePinClicked(self, button, ctrl, alt, shift)
                    end
                else
                    ZO_WorldMap_MouseUp(ZO_WorldMapContainer, button, MouseIsOver(ZO_WorldMapScroll))
                end
            </OnMouseUp>
            <OnMouseEnter>
                ZO_WorldMap_HandlePinEnter()
            </OnMouseEnter>
            <OnMouseExit>
                ZO_WorldMap_HandlePinExit()
            </OnMouseExit>
            <Controls>
                <Texture name="$(parent)Highlight" textureFile="$(MAP_PIN_PATH)UI-WorldMapPinHighlight.dds" pixelRoundingEnabled="false">
                    <Anchor point="TOPLEFT" offsetX="-5" offsetY="-5"/>
                    <Anchor point="BOTTOMRIGHT" offsetX="5" offsetY="5"/>
                </Texture>
                <Texture name="$(parent)Background" pixelRoundingEnabled="false">
                    <AnchorFill/>
                </Texture>
                <Label name="$(parent)Label" font="ZoFontGameOutline" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" horizontalAlignment="CENTER" verticalAlignment="CENTER" layer="BACKGROUND">
                    <AnchorFill/>
                </Label>
            </Controls>
        </Control>
        <Control name="ZO_WrithingWallMapPinFX" virtual="true">
            <Dimensions x="37" y="44"/>
            <Controls>
                <Texture name="$(parent)Wall" pixelRoundingEnabled="false" shaderEffectType="WAVE" textureFile="$(MAP_PIN_PATH)writhing_wall.dds">
                    <AnchorFill/>
                    <Wave angleRadians="-0.05" frequency="9.75" speed="3.8"/>
                    <WaveBounds minX="0" maxX="0" minY="0.18" maxY="0"/>
                </Texture>
                <Texture name="$(parent)Caustics" blendMode="ADD" pixelRoundingEnabled="false" shaderEffectType="CAUSTIC" textureFile="$(MAP_PIN_PATH)writhing_wall_caustics.dds">
                    <AnchorFill/>
                    <Caustic frequencyX="120" frequencyY="20" speed="1.75"/>
                </Texture>
            </Controls>
        </Control>
    </Controls>
</GuiXml>
