|
| 1 | +@page "/" |
| 2 | + |
| 3 | +<SfMaps> |
| 4 | + <MapsTitleSettings Text="Africa"></MapsTitleSettings> |
| 5 | + <MapsAnnotations> |
| 6 | + <MapsAnnotation X="70%" Y="5%"> |
| 7 | + <ContentTemplate> |
| 8 | + <div> |
| 9 | + <img src="images/maps/directions.png" style="height: 75px; width: 75px;"/> |
| 10 | + </div> |
| 11 | + </ContentTemplate> |
| 12 | + </MapsAnnotation> |
| 13 | + <MapsAnnotation VerticalAlignment="AnnotationAlignment.Far" X="15%" Y="0%"> |
| 14 | + <ContentTemplate> |
| 15 | + <div class="annotationTemplate"> |
| 16 | + <div> |
| 17 | + <p style="margin-left:10px;font-size:13px;font-weight:500"> |
| 18 | + Facts about Africa |
| 19 | + </p> |
| 20 | + </div> |
| 21 | + <hr style="margin-top:-3px;margin-bottom:10px;border:0.5px solid #DDDDDD" /> |
| 22 | + <div> |
| 23 | + <ul style="list-style-type:disc; margin-left:-20px;margin-bottom:2px; font-weight:400"> |
| 24 | + <li>Africa is the second largest and second most populated continent in the world.</li> |
| 25 | + <li style="padding-top:5px;"> |
| 26 | + Africa has 54 sovereign states and 10 non-sovereign territories. |
| 27 | + </li> |
| 28 | + <li style="padding-top:5px;"> |
| 29 | + Algeria is the largest country in Africa, where as Mayotte is the smallest. |
| 30 | + </li> |
| 31 | + </ul> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + </ContentTemplate> |
| 35 | + </MapsAnnotation> |
| 36 | + </MapsAnnotations> |
| 37 | + <MapsLayers> |
| 38 | + <MapsLayer ShapeData='new {dataOptions ="https://cdn.syncfusion.com/maps/map-data/africa.json"}' |
| 39 | + TValue="string"> |
| 40 | + <MapsShapeSettings Fill="url(#grad1)" /> |
| 41 | + </MapsLayer> |
| 42 | + </MapsLayers> |
| 43 | +</SfMaps> |
| 44 | + |
| 45 | +<svg height="30" width="400"> |
| 46 | + <defs> |
| 47 | + <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%"> |
| 48 | + <stop offset="0%" style="stop-color:#C5494B;stop-opacity:1" /> |
| 49 | + <stop offset="100%" style="stop-color:#4C134F;stop-opacity:1" /> |
| 50 | + </linearGradient> |
| 51 | + </defs> |
| 52 | +</svg> |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +<style> |
| 70 | + .annotationTemplate { |
| 71 | + color: #DDDDDD; |
| 72 | + box-shadow: 0px 2px 5px #666; |
| 73 | + -webkit-box-shadow: 0px 2px 5px #666; |
| 74 | + -moz-box-shadow: 0px 2px 5px #666; |
| 75 | + font-size: 12px; |
| 76 | + width: 300px; |
| 77 | + width: 300px; |
| 78 | + border-radius: 2px; |
| 79 | + -moz-border-radius: 2px; |
| 80 | + -webkit-border-radius: 2px; |
| 81 | + font-family: Roboto; |
| 82 | + background: #3E464C; |
| 83 | + margin: 20px; |
| 84 | + padding: 10px; |
| 85 | + } |
| 86 | +</style> |
| 87 | + |
0 commit comments