/// <summary> /// This method runs once in the Module life; when it loaded into the petrel. /// This method called first. /// </summary> /// public void Initialize() { Type customVectorFieldType = typeof(CustomVectorField); Type factoryType = typeof(IMapRenderer); CustomVectorFieldMapDisplay mapFactory = new CustomVectorFieldMapDisplay(); CoreSystem.Services.AddService(customVectorFieldType, factoryType, mapFactory); }