2012-02-03 2 views
1

임 내 머리는 내가 기본지도 위에 추가 할 투명 타일 타일 소스를 하는 방법 (경로-나

을 arround를 얻을 수없는 무언가 고민에 공개 투명 레이어를 만들 수 있습니다 streetmap)하지만 작동하지 않습니다.

// setup a base map 
baseMapView = [[RMMapView alloc]initWithFrame: CGRectMake(0, 0, self.view.frame.size.width - self.view.frame.origin.x, self.view.frame.size.height - self.view.frame.origin.y) ]; 
[baseMapView setBackgroundColor:[UIColor blackColor]]; 
[baseMapView setDelegate:self]; 
[baseMapView setDeceleration:YES]; 
[[baseMapView contents] setTileSource:[[[RMOpenStreetMapSource alloc] init] autorelease]]; 
[self.view addSubview: baseMapView]; 

// markings in transparent png 
markerMapView = [[RMMapView alloc]initWithFrame: CGRectMake(0, 0, self.view.frame.size.width - self.view.frame.origin.x, self.view.frame.size.height - self.view.frame.origin.y) ]; 
[markerMapView setBackgroundColor:[UIColor redColor]]; 
[markerMapView setAlpha: 0.5]; 
[markerMapView setOpaque:NO]; 
[markerMapView setDelegate:self]; 
[markerMapView setDeceleration:YES]; 
LLOpenSeaMapSource *tileSource = [[LLOpenSeaMapSource alloc] init]; 
tileSource.baseURL = @"http://tiles.luky.nl/mark"; 
[[markerMapView contents] setTileSource: tileSource]; 
[self.view addSubview: markerMapView]; 

이미지는 투명 png 타일입니다. 내가 예상대로 결과는 그러나되지 않습니다 : 당겨 일부 머리, 나는 clearColor 빨간색하지의 배경을 설정하여 시작 후 내가 게시 된 조각이라고

Alas not very useful as an overlay 참고하지만, 당신이 볼 수있는 어쨌든 회색 - (

답변

1

직선 route-me/route-me 분기를 사용하는 것처럼 보입니다. 현재 프로젝트가 여러지도 소스에 설정되어 있지 않습니다. route-me/alpstein 포크 또는 mapbox fork을 체크 아웃 할 수 있습니다. 둘 다 멀티플 타일 소스를 지원합니다. 맵 박스가하는 작업 때문에 업데이트와 기능이 훨씬 더 자주 추가됩니다.이 브랜치는 route-me/route-me에서 플러그 앤 플레이 대체가 아닙니다.

사실, 새 타일 소스가 정말로 필요한가요? 아니면 RMMarkers로 무엇을하고 있습니까?

+0

나는이 문제를 해결하기 위해 노력할 것이지만 다음 릴리스에 대한 귀하의 제안을 살펴볼 것입니다. 마커가 작동하지 않을 것입니다. 나는 두 곳의지도를 부과해야합니다. – CocoaChris