我想在我的地圖上顯示多個引腳全部使用滴管動畫,因此如果任何機構有示例代碼,那麼請發送發送link.i這個字段是新的。感謝提前。我如何在地圖上顯示多個針腳?
1
A
回答
2
0
正如你展示單針..保持單針代碼在環路和環路傳遞不同的經緯度。你會在不同的位置獲得銷
0
if([points retainCount] > 0)
{
[points release];
points = nil;
}
if([annotationAry retainCount] > 0)
{
[annotationAry release];
annotationAry = nil;
}
points = [[NSMutableArray alloc]init];
annotationAry = [[NSMutableArray alloc]init];
for(int i=0;i<[longitudeary count];i++)
{
CLLocation* currentLocation1 = [[CLLocation alloc] initWithLatitude:[[latitudeary objectAtIndex:i]doubleValue] longitude:[[longitudeary objectAtIndex:i]doubleValue]];
[points addObject:currentLocation1];
}
for(int i=0;i<[points count];i++)
{
// CREATE THE ANNOTATIONS AND ADD THEM TO THE MAP
CSMapAnnotation* annotation = nil;
// create the start annotation and add it to the array
annotation = [[[CSMapAnnotation alloc] initWithCoordinate:[[points objectAtIndex:i] coordinate]
annotationType:CSMapAnnotationTypeImage
title:@"123456..."
shID:[shIDary objectAtIndex:i]
catID:[catIDary objectAtIndex:i]
ciggUse:[ciggaretteUSEary objectAtIndex:i]
wifiUse:[wifiUSEary objectAtIndex:i]
controller:self]autorelease];
[annotationAry addObject:annotation];
}
[mapViewmy addAnnotations:[NSArray arrayWithArray:annotationAry]];
相關問題
- 1. 在MKMap上顯示多個針腳iPhone
- 2. MapBox顯示一個地圖的針腳
- 3. 在谷歌地圖上顯示一個點周圍的針腳
- 4. 如何在地圖上創建多個顏色的針腳?
- 5. 如何在地圖中顯示多個針註釋?
- 6. iOS中的Google地圖不顯示多個針腳
- 7. 如何在Google地圖上顯示多個地點?
- 8. 如何在Android的地圖上顯示多個覆蓋圖?
- 9. 如何在冰箭地圖上顯示多個圖釘
- 10. 地圖視圖丟棄多個針腳
- 11. 顯示自定義多個針腳顯示針對位置的針腳錯誤
- 12. 如何在地圖顯示時在地圖上顯示氣球?
- 13. 如何在地圖上顯示多個標記
- 14. 如何在Google地圖上顯示多個位置?
- 15. 如何在地圖上突出顯示多個標記
- 16. 如何在谷歌地圖上顯示多個標記v2
- 17. 如何在Google地圖上顯示多個點?
- 18. 如何在谷歌地圖Android上顯示多個標記?
- 19. 鈦:如何在地圖上顯示多個註釋?
- 20. 如何在地圖上顯示多個標記
- 21. 如何在地圖上顯示多個標註objective-c
- 22. 多針腳谷歌地圖
- 23. 在地圖上放棄多個針腳給定座標Mapkit iPhone
- 24. 不能讓MKannotate別針在我的地圖上顯示
- 25. 指針不顯示在我的地圖上
- 26. Xamarin表單 - Google地圖在地圖上顯示多個標記
- 27. 如何把谷歌地圖上針永久,顯示我們的地址?
- 28. Android - 谷歌地圖 - 如何在地圖上顯示多個標記?
- 29. 在WordPress中顯示多個地圖指針
- 30. iPhone MKMapView:設置地圖區域以顯示地圖上的所有針腳
我有一個示例代碼,但它無法理解一個簡單的地圖例子。 – 2010-06-07 13:33:23
只需使用所有MKAnnotationView的數組在所有MKMapView上調用addAnnotations即可。 如果您想放置動畫,請將animatesDrop設置爲true – lukya 2010-06-07 13:48:36