Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Doogie Talons 183 posts 318 karma points
    Mar 15, 2012 @ 17:34
    Doogie Talons

    Really Simple static image API Render for this Datatype.

    So I call the datatype locationMap I also have a mediapicker for a marker graphic. These have to be 64x64 max best as transparent pngs. If it can't find a picked one it defaults... if google can't find any it just add's it's own.

    This is not an interactive map it's just an api free image of the location with a custom pin.

    <xsl:if test="string($currentPage/locationMap) != '' ">
    <class="eventinfo_location"><strong><xsl:text>Location Map:</xsl:text></strong></p>
    <xsl:variable name="mapSplit" select="umbraco.library:Split($currentPage/eventLocationMap, ',')" />
    <xsl:variable name="mlat" select="$mapSplit/value[1]"/>
    <xsl:variable name="mlon" select="$mapSplit/value[2]"/>
    <xsl:variable name="mzoom" select="$mapSplit/value[3]"/>

    <xsl:variable name="mpin">
      <xsl:when test="$currentPage/eventMapPin !=''">http://yourdomain<xsl:value-of select="umbraco.library:GetMedia($currentPage/eventMapPin, false())/umbracoFile" /></xsl:when>

    <img src=";zoom={$mzoom}&amp;markers=icon:{$mpin}%7C{$mlat},{$mlon}&amp;sensor=false" />

Please Sign in or register to post replies

Write your reply to: