Yes. Your property sale is taxable to West Virginia and Maryland. West Virginia taxes nonresidents on income derived from real or tangible personal property located in West Virginia. Maryland taxes residents on income earned everywhere.
File a nonresident WV tax return and a resident MD return. Maryland will give you a tax credit for tax paid to West Virginia. WV and MD are what are called reciprocal states, but the exception for filing two state returns only counts for W-2 income.