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.
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) != '' ">
<p 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:choose>
<xsl:when test="$currentPage/eventMapPin !=''">http://yourdomain<xsl:value-of select="umbraco.library:GetMedia($currentPage/eventMapPin, false())/umbracoFile" /></xsl:when>
<xsl:otherwise>http://yourdomain/whereyoukeepimages/image.png</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<img src="http://maps.googleapis.com/maps/api/staticmap?size=270x270&zoom={$mzoom}&markers=icon:{$mpin}%7C{$mlat},{$mlon}&sensor=false" />
</xsl:if>
is working on a reply...