由于某种原因,当我尝试在mapView(MKMapView)上绘制两个MKPolygons时,我最终将两个多边形连接在一起。分别绘制每个多边形效果很好。而且我已经验证了每个多边形不包含任何形成两者之间连接的坐标。 I've attached an image with the two polygons connected
作为参考,我在这里打电话添加多边形。
Content
这是我的DataTemplate
代码:
<Label HorizontalAlignment="Center" Content="{Binding RecordCount}" >
<Label.ContentTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Width="100">
<TextBlock Text="{Binding}"/>
<TextBlock Text=" Cars"/>
</StackPanel>
</DataTemplate>
</Label.ContentTemplate>
</Label>