mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +00:00 
			
		
		
		
	Radar site buttons, styling and hover
This commit is contained in:
		
							parent
							
								
									798dc479f0
								
							
						
					
					
						commit
						de2e1fea3f
					
				
					 3 changed files with 46 additions and 9 deletions
				
			
		|  | @ -165,6 +165,8 @@ public: | |||
|    std::shared_ptr<QMapLibreGL::Map> map_; | ||||
|    std::list<std::string>            layerList_; | ||||
| 
 | ||||
|    std::vector<std::shared_ptr<GenericLayer>> genericLayers_ {}; | ||||
| 
 | ||||
|    QStringList        styleLayers_; | ||||
|    types::LayerVector customLayers_; | ||||
| 
 | ||||
|  | @ -802,6 +804,7 @@ void MapWidgetImpl::AddLayers() | |||
|       map_->removeLayer(id.c_str()); | ||||
|    } | ||||
|    layerList_.clear(); | ||||
|    genericLayers_.clear(); | ||||
|    placefileLayers_.clear(); | ||||
| 
 | ||||
|    // Update custom layer list from model
 | ||||
|  | @ -961,6 +964,7 @@ void MapWidgetImpl::AddLayer(const std::string&            id, | |||
|       map_->addCustomLayer(id.c_str(), std::move(pHost), before.c_str()); | ||||
| 
 | ||||
|       layerList_.push_back(id); | ||||
|       genericLayers_.push_back(layer); | ||||
|    } | ||||
|    catch (const std::exception&) | ||||
|    { | ||||
|  | @ -1206,10 +1210,8 @@ void MapWidgetImpl::RunMousePicking() | |||
|       util::maplibre::LatLongToScreenCoordinate(coordinate); | ||||
| 
 | ||||
|    // For each layer in reverse
 | ||||
|    // TODO: All Generic Layers, not just Placefile Layers
 | ||||
|    bool itemPicked = false; | ||||
|    for (auto it = placefileLayers_.rbegin(); it != placefileLayers_.rend(); | ||||
|         ++it) | ||||
|    for (auto it = genericLayers_.rbegin(); it != genericLayers_.rend(); ++it) | ||||
|    { | ||||
|       // Run mouse picking for each layer
 | ||||
|       if ((*it)->RunMousePicking( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat