mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 20:20:05 +00:00 
			
		
		
		
	Merge pull request #294 from AdenKoperczak/location_markers_ids
Location markers ids
This commit is contained in:
		
						commit
						c4f78df149
					
				
					 11 changed files with 451 additions and 58 deletions
				
			
		|  | @ -55,17 +55,13 @@ void MarkerLayer::Impl::ReloadMarkers() | |||
| 
 | ||||
|    geoIcons_->StartIcons(); | ||||
| 
 | ||||
|    for (size_t i = 0; i < markerManager->marker_count(); i++) | ||||
|    { | ||||
|       std::optional<types::MarkerInfo> marker = markerManager->get_marker(i); | ||||
|       if (!marker) | ||||
|    markerManager->for_each( | ||||
|       [this](const types::MarkerInfo& marker) | ||||
|       { | ||||
|          break; | ||||
|       } | ||||
|       std::shared_ptr<gl::draw::GeoIconDrawItem> icon = geoIcons_->AddIcon(); | ||||
|       geoIcons_->SetIconTexture(icon, markerIconName_, 0); | ||||
|       geoIcons_->SetIconLocation(icon, marker->latitude, marker->longitude); | ||||
|    } | ||||
|          std::shared_ptr<gl::draw::GeoIconDrawItem> icon = geoIcons_->AddIcon(); | ||||
|          geoIcons_->SetIconTexture(icon, markerIconName_, 0); | ||||
|          geoIcons_->SetIconLocation(icon, marker.latitude, marker.longitude); | ||||
|       }); | ||||
| 
 | ||||
|    geoIcons_->FinishIcons(); | ||||
|    Q_EMIT self_->NeedsRendering(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat